Jump to content

Recommended Posts

Team AphpACHE

 

On Windows XP Home (development only) I have been trying to get php (Apache?) to show error messages in my browser.

 

I changed the php.ini (shown below). I issue commands in code (shown below) to tell php to show errors, yet when an error occurs the screen goes blank.

 

Might I need Apache settings, do I need some sort of \"template\" (html?) document?

 

Jim

 

--------

 

*** CODE *** I use to verify that settings change, they do.

 

error_reporting(E_ALL);

Echo \'<br>error_reporting = ALL: \' . error_reporting();

 

error_reporting(0);

Echo \'<br>error_reporting = NONE: \' . error_reporting();

 

Here are *** php ini *** settings.

display_errors = On

display_startup_errors = On

log_errors = On

log_errors_max_len = 1024

ignore_repeated_errors = Off

track_errors = Off

 

Not set (php initial settings/default)

;docref_root = /phpmanual/

;docref_ext = .html

;error_prepend_string = \"<font color=ff0000>\"

;error_append_string = \"</font>\"

;error_log = filename

;error_log = syslog

no i just did that to verify that my code was actually affecting settings.

 

I turned \"ALL\" on then checked the status then I turned everything off and checked again. It changed so I know code is working.

 

In the actual script I set it to ALL.

 

For the record my php.ini settings are

error_reporting = E_ALL

display_errors = On

display_startup_errors = On

log_errors = On

log_errors_max_len = 1024

ignore_repeated_errors = Off

track_errors = Off

 

I must be missing something basic? Is there something in Apache I should look at?

 

Thanks sooo much.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.