RUVIDEO
Поделитесь видео 🙏

PHP Errors On (.user.ini file error reporting, display PHP errors)

PHP is a pain to debug because syntax errors can cause entire page to die and you might not find out until you test it on a server. Some IDE's & code editors can tell you syntax errors before running the code, but mysterious errors can appear out of nowhere. But it's pretty easy to turn on the feature to display errors.

Create a new file called ".user.ini" (must be this exact name)
Put this line in the file
display_errors = 1
(No need for semicolons, but it is case sensitive)
This is a hidden file with no name
If you can't see the file once created, then you probably need to "show hidden files"
-In windows, go to Control Panel
-Then "File Explorer Options"
-In the "View" tab, check "Show Hidden files, folders and drives"

Mac Display Hidden Files http://ianlunn.co.uk/articles/quickly-showhide-hidden-files-mac-os-x-mavericks/

Now upload the ".user.ini" file to your web server
THIS TAKES 5 MINUTES TO UPDATE ON THE SERVER
If you can't see it in your FTP program, you may need to enable hidden files there again
*Winscp Options❯Preference❯Panels, then "Show Hidden Files"

This file enables error reporting for files in the same directory as well as any subfolders

If you've waited more than 5 minutes & error reporting isn't working, add this line
phpinfo();
It displays basic information about your PHP server
Ctrl+F (find) ".user.ini" or "filename" & see what the file should be called
If it's not exactly ".user.ini", then update yours to match

Or you could include this line of PHP code in a PHP file and any future lines will have error reporting turned on
ini_set('error_reporting', E_ALL);
But this isn't the best if you want 2 identical copies of your site (live & development). That's why the 1st option is better

Sublime Text 3 https://www.sublimetext.com/3
WinSCP https://winscp.net/eng/index.php

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «PHP Errors On (.user.ini file error reporting, display PHP errors)», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.