Kindest regards, Arnel C. Thanks! –Abs Jun 27 '09 at 19:16 add a comment| up vote 86 down vote Inside your php.ini: display_errors = on Then restart your web server. The E_ALL constant also behaves this way as of PHP 5.4. Php Hide Errors I hope that helps to answer your question!
Web Hosting Business Hosting VPS Hosting Dedicated Servers Enterprise Hosting Solutions Reseller Hosting WordPress Hosting Launch Assistâ¢ Managed Hosting Domain Names Web Design Services Hosting Features SSD Hosting Shared cPanel Hosting or view other's suggestions! The article says that the php.ini file is located in the public_html directory, but the file isn't there. http://stackoverflow.com/questions/5438060/showing-all-errors-and-warnings You can set the following line of code to On to log errors or off to turn error logging off.
Did you mean ? Php Display Errors Off The best way to debug php code is to use the console; run the following: php -l phpfilename.php share|improve this answer edited May 4 at 20:22 JonasCz 6,02151745 answered May 4 For example, if you have a PHP file called index.php in a subdirectory like public_html/wordpress, if you have any PHP errors in the index.php file of that location, the error log The configuration option will keep this new value during the script's execution , and will be restored at the script's ending . –jave.web Dec 8 '14 at 22:04 2 I
Read More » REPORT ERROR PRINT PAGE FORUM ABOUT × Your Suggestion: Your E-mail: Page address: Description: Submit × Thank You For Helping Us! http://php.about.com/od/troubleshooting/qt/php_error_reporting.htm Check for errors behind the scenes As an alternative between showing no errors and showing all errors, you may wish to monitor the errors being generated by your site by running Error Reporting Php Ini Am I looking the wrong place? Php Error Types What to do with my pre-teen daughter who has been out of control since a severe accident?
Look for the display_errors line in the php.ini and set it to On to display errors or Off to turn errors off. http://setiweb.org/php-error/php-ini-error-reporting-all.php PHP/MySQL Learn PHP - PHP Tutorial - Learn PHP Code Learn MySQL with free online tutorials Learn PHP - Advanced PHP - PHP Tutorial PHP & MySQL - Use PHP with Powered by W3.CSS. See Also The display_errors directive The html_errors directive The xmlrpc_errors directive ini_set() - Sets the value of a configuration option add a note User Contributed Notes 29 notes up down 220 Php Error Reporting Not Working
If you are getting errors regularly, be sure to remove the logs periodically. Inside php.ini add the following code : ( i am giving an simple error showing code) display_errors = on display_startup_errors = on share|improve this answer edited Jul 8 '15 at 12:09 I found this post in a forum concerning your question: "Use set_error_handler('myErrorFunction'); (See PHP Manual set_error_handler) define myErrorFunction with database inserts, turn off standard error reporting display with ini_get('display_errors', 0);" (How have a peek at these guys Return Values Returns the old error_reporting level or the current level if no level parameter is given.
I have to look at apache logs to see the warning. Php Error Message Your best bet is to follow their suggestions and see if it doesn't resolve the problem you're seeing. supported values are given below.
# 0 - Turn off all error reporting
# 1 - Running errors
# 2 - Running errors + notices
Parameters level The new error_reporting level.