RE: debugging php?

Hi Alex,
You will get a lot of information if you go to your browser and in the address 
bar, type http://www.php.net/display_errors. When you get to that page, pay 
attention to display_errors, error_reporting, and the predefined constants for 
controlling how errors are displayed

You can also get all the information about your environment if you write a PHP 
script and as the only statement, put this.
Phpinfo();

Jim



-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Alex Hall
Sent: Tuesday, March 15, 2011 10:31 PM
To: programmingblind
Subject: debugging php?

Hi all,
I am doing php for a databases class. When I run it, I get an http 500
error, but no errors from my actual code. I tried a simple "echo test"
to make sure php is working and it ran fine, so it has to be something
in my code. I thought php would print any errors to the webpage when
it was displayed (show_errors is on)? Why am I getting this generic
error page instead? More to the point, is there a simple way to debug
without using an ide?

--
Have a great day,
Alex (msg sent from GMail website)
mehgcap@xxxxxxxxx; http://www.facebook.com/mehgcap
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind


This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed.  If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it.  If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
 The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind

Other related posts: