| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe to WebmasterWorld|
|web server is not displaying errors|
| 12:19 pm on Sep 1, 2006 (gmt 0)|
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
| 2:56 pm on Sep 1, 2006 (gmt 0)|
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.
| 3:57 pm on Sep 1, 2006 (gmt 0)|
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]
| 7:45 am on Sep 2, 2006 (gmt 0)|
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.
| 3:29 pm on Sep 2, 2006 (gmt 0)|
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.
© Webmaster World 1996-2014 all rights reserved