Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Blank page with no clue as to why !!

Status
Not open for further replies.

ChrisMacPherson

Programmer
Jul 3, 2000
157
GB
I am having a frustrating time trying to figure out why my browsers are displaying a blank page to me when I load up my work.

I am coding a msg board system using php classes and all was going well until this morning when I decided to transfer the work I have done to my external webspace. After doing this, all I get is a blank screen where my site appeared before.

I am getting no error msgs in either my apache err log, in the browser, or in the php error log. I have run through the code many times to find any mistakes but cant find any. The code worked 3 hours ago so I know it works.

If anyone has any ideas I would be very grateful as I am completely stumped, or being a complete idiot. I have been coding php and using this site for a good 4/5 years now.

Thanks

Chris Macp
 
Hi

Did you sort your problem? I have a very similar one and being a newbie I am getting very depressed about it - it is for my final year project at uni!!!

My system was coming along fine, until suddenly all I get is a blank page when I call it up.

I haven't done anything new or different to cause this. One minute it was working, the next it wasn't. Is this usual for PHP? I'm using PHP 4 and MySql 3.23.

Any brilliant ideas?

Please help.
 
I could be MAJORLY wrong, but I always thought that it was IE that gernerated
Code:
<!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;>
<HTML><HEAD>
<META http-equiv=Content-Type content=&quot;text/html; charset=windows-1252&quot;></HEAD>
<BODY></BODY></HTML>

I thought it created that when the server had sent a reply (possibly the header) but hadn't actually sent the source yet.

If you create a simple php script that has that header.inc at the top, does it output anything?
 
That depends on the browser... Mozilla when veiwing a blank page will still have the head and body tags (even if not served) without a document type definition, because it uses Java's JEditorPane (Netscape and Mozilla being writen in Java and nativly compiled). If Mozilla/Netscape gets any headers it will use the ones it recieves... I assume (though am not certian) that IE will just fail to get anything if nothing is sent.

My guess on why it went blank all of a sudden is that there was only one output point (instead of
Code:
print
s or
Code:
echo
s being all over the place; or the PHP script was uploaded, but not all the included files. This is just a guess, but without seeing more of the code that all we can do.
 
What was the solution, I have the same exact problem I'm on OS X panther with apache and mysql
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top