Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 15th, 2003, 05:03 PM
Registered User
 
Join Date: Nov 2003
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

 
Old November 15th, 2003, 10:14 PM
Friend of Wrox
 
Join Date: Jun 2003
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/
 
Old November 16th, 2003, 08:19 PM
Registered User
 
Join Date: Nov 2003
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/
 
Old November 16th, 2003, 09:40 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
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
:::::::::::::::::::::::::::::::::





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





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