Page 1 of 1

blank page, can't get errors to display

Posted: Tue Aug 09, 2005 7:30 pm
by bruceg
I am working on a form which uses PHP to do the submit stuff, and All I am getting is a blank white page. The HTML only displays fine, so I know there are some PHP errors, only I can;t get them to display. I tried adding this to my code but no dice. The server is off site, so I don't have access to the ini file, but here is what I have inline.

<?php
Error_reporting (E_ALL);
//rest of php code here
?>

any suggestions???

Posted: Tue Aug 09, 2005 7:32 pm
by John Cartwright
try

Code: Select all

@ini_set('display_errors', '1');
	error_reporting(E_ALL);

Posted: Tue Aug 09, 2005 7:36 pm
by feyd
there are instances where you can't use the code to display the errors.. look in your error log file if you can (should be able to access it through your control panel, if hosted)

Posted: Tue Aug 09, 2005 7:43 pm
by s.dot
if using FTP, the error log should be in the same directory as your script you're running.

Posted: Tue Aug 09, 2005 7:46 pm
by feyd
start sharing that <span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> scrotaye.. I want some!



but seriously.. the error logs are typically in /var/logs/httpd/ or similar, if you can get to that.. or they should be fairly easy to get to through your host's control panels.

Posted: Tue Aug 09, 2005 7:46 pm
by John Cartwright
scrotaye wrote:if using FTP, the error log should be in the same directory as your script you're running.
No idea where you got that from but your error logs are usually found in the root/logs folder.

Feyd | Stop Posting before me, damnit.

Posted: Tue Aug 09, 2005 7:48 pm
by s.dot
feyd wrote:start sharing that <span style='color:blue' title='naughty'>smurf</span> scrotaye.. I want some!
sharing what :P all of my error logs generated are in the same path of the script I execute.. whether it be public_html/ or public_html/foo/bar/<span style='color:blue' title='I&#39;m naughty, are you naughty?'>smurf</span> :)