On 6/19/07, Daniel Brown <parasane@xxxxxxxxx> wrote:
On 6/19/07, revDAVE <coolcat@xxxxxxxxxxxxxxxx> wrote: > I am just beginning to learn about PHP. > > It seems as though if I make a code error... The PHP page will simply come > up blank. ( Not too helpful for error checking) - I would like to see some > kind of report on the page as to what went wrong. > > I have tried adding various lines of code to my page - from the link below > - however I still get a blank page when errors occur... > > display_errors(1); > error_reporting (E_ALL); > Etc........ > > I have read that possibly the errors are being sent to kind of error log - > rather than the page? > > Q: How can I get the error reporting show up on the page so I can see it? > > - - - - - > From: PHP: Error Handling and Logging Functions - Manual > Location: http://www.php.net/manual/en/ref.errorfunc.php > - - - - - > > XXXIII. Error Handling and Logging Functions > > > > > -- > Thanks - RevDave > CoolCat@xxxxxxxxxxxxxxxx > [db-lists] > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > If it's a shared host, your administrator may have disabled it. If it's your own box, check your php.ini settings for errors and output. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107
Also, to answer the question that you didn't ask.... check in the same directory as the scripts for a file named `error_log`. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php