Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > Apache Help

Apache Help Post any question relating to Apache here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-05-19, 03:23 AM
Junior Member
 
Join Date: May 2007
Posts: 2
ksmatthews is on a distinguished road
Angry displaying php error messages

HI There,

OK I have now set up Apache and php5 on my machine and can start my php development.

One problem however is that when I run a script in localhost, it either works or I get a blank screen. In other words, if the php script contains any errors these errors are not displayed in the browser window which is what should happen.

Anyone got any ideas ?

regards,

Steven Matthews
Reply With Quote
  #2 (permalink)  
Old 2007-07-11, 12:43 PM
Junior Member
 
Join Date: Jul 2007
Posts: 2
Loundry is on a distinguished road
Default

Quote:
Originally Posted by ksmatthews View Post
HI There,

OK I have now set up Apache and php5 on my machine and can start my php development.

One problem however is that when I run a script in localhost, it either works or I get a blank screen. In other words, if the php script contains any errors these errors are not displayed in the browser window which is what should happen.

Anyone got any ideas ?

regards,

Steven Matthews
I suggest looking for your php.ini file (that's under *ix, I don't know what it's called under windows). Look for the directives "error_reporting" and "display_errors". My own config looks like this:

error_reporting = E_ALL & ~E_NOTICE
display_errors = On

I also suggest setting up a info.php file that contains only this:

<? phpinfo(); ?>

And then load that in your web browser. It will cause PHP to spit out all of its configuration into the browser window, and you can look for particular directives (such as "error_reporting" and "display_errors").

Hope that helps!
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.5 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.5 (a popular PHP IDE) and NuCoder 2.0 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:42 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.