blank page, can't get errors to display

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bruceg
Forum Contributor
Posts: 174
Joined: Wed Mar 16, 2005 11:07 am
Location: Morrisville, NC
Contact:

blank page, can't get errors to display

Post 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???
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

try

Code: Select all

@ini_set('display_errors', '1');
	error_reporting(E_ALL);
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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)
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

if using FTP, the error log should be in the same directory as your script you're running.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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.
Last edited by John Cartwright on Tue Aug 09, 2005 7:48 pm, edited 1 time in total.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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> :)
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply