Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 15th, 2003, 05:03 PM
Registered User
 
Join Date: Nov 2003
Location: Ventura, CA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem seeing errors?

Hi,

If anyone can help me I'd really appreciate it. I am not getting errors printed when I run a script that has errors in it. I am running on Windows Apache and testing my scripts in Internet Explorer. I have changed the PHP.ini file in my windows directory to allow errors and I have changed some settings in Internet Explorer. I appreciate any suggestions. Thanks
David

Reply With Quote
  #2 (permalink)  
Old November 15th, 2003, 10:14 PM
Friend of Wrox
Points: 2,570, Level: 21
Points: 2,570, Level: 21 Points: 2,570, Level: 21 Points: 2,570, Level: 21
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: San Diego, CA, USA
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

It would help if you were more specific about the configuration settings you changed...

You need to have error_reporting = E_ALL (in php.ini) to log all errors and warnings. You need to have display_errors = on to send logged errors and warnings to the client as output. There shouldn't be anything you can set in Internet Explorer that affects how PHP errors are displayed -- they're sent to the browser as HTML, so IE just thinks they're part of the web page you're displaying.


Take care,

Nik
http://www.bigaction.org/
Reply With Quote
  #3 (permalink)  
Old November 16th, 2003, 08:19 PM
Registered User
 
Join Date: Nov 2003
Location: Ventura, CA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks nikolai,

     Unfortunately though, I am still not seein errors. I should probably add that I am running Apache2Triad which is just a prepackaged installation of components. I just did a clean reinstall of Windows XP today, still not working. When I made the changes in IE I wasn't thinking, damn novices eh? thanks again, if you can think of anything else I would really appreciate it.
David



Quote:
quote:Originally posted by nikolai
 It would help if you were more specific about the configuration settings you changed...

You need to have error_reporting = E_ALL (in php.ini) to log all errors and warnings. You need to have display_errors = on to send logged errors and warnings to the client as output. There shouldn't be anything you can set in Internet Explorer that affects how PHP errors are displayed -- they're sent to the browser as HTML, so IE just thinks they're part of the web page you're displaying.


Take care,

Nik
http://www.bigaction.org/
Reply With Quote
  #4 (permalink)  
Old November 16th, 2003, 09:40 PM
richard.york's Avatar
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Aye! Uh you didn't reinstall Windows just to get PHP working, right??? This sounds to me like your errors are going to a log of some kind.. my guess if it isn't a PHP.ini setting (located at C:\Windows\php.ini). It is likely an Apache setting that's overriding a php.ini error setting. I don't know *jack* about setting up Apache but I do know that if PHP is installed as an Apache module that php.ini settings can be overridden in httpd.conf and by .htaccess files, more likely the former than the latter as .htaccess files are created and over-ridden on a per directory basis (You would have to have deliberately created one) and I *think* that httpd.conf is done per virtual domain, not sure. I've overridden values that way by using a .htaccess file in the past but have never messed with setting up apache so I wouldn't know what to look for in httpd.conf.

The point to all of this being, look at the server configuration or look at php.ini, this doesn't have anything to do with the OS or browser!!

Good luck!
: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors Nate L BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 2 October 20th, 2008 10:01 PM
Errors nnrin Classic ASP Databases 2 December 11th, 2007 12:36 PM
Can't get errors to display with <html:errors> michaeldill JSP Basics 0 August 2nd, 2004 01:47 PM
errors and fixing errors Droopy XML 0 August 26th, 2003 12:47 AM
Errors Errors DB Errors Ljhopkins VS.NET 2002/2003 0 July 15th, 2003 12:42 PM



All times are GMT -4. The time now is 04:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.