HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Tips/Tricks/Mods (
-   -   disable php error messages (

aclhkaclhk 10th December 2010 07:06

disable php error messages
a bad php script will produce the following error. pls advise how to disable the display for detail error.

Warning: include() [function.include]: open_basedir restriction in effect. File(/home/www/ is not within the allowed path(s): (/var/www/clients/client3/web13/web:/var/www/clients/client3/web13/tmp:/var/www/ in /var/www/clients/client3/web13/web/joomla/selection/read.php on line 4

edge 10th December 2010 08:41

It's not an error that you are seeing, but a warning.
You can dissable the warnings and erroros in your php.ini file (have a look at the error_reporting = option)

To turn error reporting off for a single document, include this line: error_reporting(0); at the top of the php page that is giving you the warning.

All times are GMT +2. The time now is 03:06.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.