| Welcome to WebmasterWorld Guest from 126.96.36.199 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|web server is not displaying errors|
Onmy server when i run a script it is not showing any error, not syntex error or any other error just shows blank page if any error found.
I set some values in ini -
But still it is not showing errors just showing a blank page.
I checked php settings using phpinfo(). for display_errors property there are two values under local column it is on and under master column it is off.
Please help to solve this problem, i am not able to debug my pages. please help
Do you have access to your php config file
IF yes you need to turn the error reporting ON
If you are on a shared I doubt that your host will do it for you.
On a production server errors are turned OFF
reason: It could allow reading sensible info on location etc.
The following 2 lines in a .htaccess file in your document root will often do the trick:
php_value error_reporting 2047
php_value display_errors on
If your host is shared and running phpsuExec, you may well have to add the corresponding lines (or make sure they are not commented out)
error_reporting = E_ALL
display_errors = On
in a _local_ php.ini file. These will then override the settings in the global php.ini file (which you won't be able to change).
Contacting your host is the best bet.
[edited by: FalseDawn at 4:00 pm (utc) on Sep. 1, 2006]
Thanks for reply.
I am using a shared server, and try to set values of config file using ini_set function,
But after that when i use phpinfo to see configuration it is showing display_error On for local and off for global.
i think this is making problem? how can i change global value of this.
Have you tried what I suggested? Did you even read it?
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved