homepage Welcome to WebmasterWorld Guest from 54.227.146.68
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
web server is not displaying errors
compose




msg:3068720
 12:19 pm on Sep 1, 2006 (gmt 0)

Hello,

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 -

ini_set('log_errors','0');
ini_set('display_errors','1');
error_reporting(2047);

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

vineet

 

henry0




msg:3068860
 2:56 pm on Sep 1, 2006 (gmt 0)

Do you have access to your php config file
PHP.ini
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.

FalseDawn




msg:3068917
 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]

compose




msg:3069699
 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,

ini_set('log_errors','0');
ini_set('display_errors','1');
error_reporting(2047);

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.

vineet

FalseDawn




msg:3069928
 3:29 pm on Sep 2, 2006 (gmt 0)

Have you tried what I suggested? Did you even read it?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved