Jump to content

[SOLVED] Blank (Empty) Pages, No Errors.. Help?


d22552000

Recommended Posts

Ok first I will start off with the code:

 

INDEX.HTML:

<?PHP
include('./HTML/html.php');

    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // some day in the past
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

$RET = '<H4>Welcome!</H4><H2><A HREF="Upload.html">Upload A File</A> | <A HREF="Download.html">Download A File</A></H2>';
html('Home',$RET);

?>

 

HTML/HTML.PHP:

<?PHP

function html($TITLE,$RET,$BASE=true) {
echo '<HTML><HEAD>
<TITLE>FilePirate :: '.$TITLE.'</TITLE>';
if ($BASE) {
echo '<LINK HREF="../style.css" REL="stylesheet" TYPE="text/css" />';
} else {
echo '<LINK HREF="style.css" REL="stylesheet" TYPE="text/css" />';
}
echo '</HEAD><BODY>
<TABLE WIDTH="75%" BORDER="1" CELLSPACING="2" CELLPADDING="2">
  <TR>';
if ($BASE) {
echo '    <TH SCOPE="col"><A HREF="../index.html"><IMG SRC="../Images/BANNER-bonw.gif" ALT="FilePirate" NAME="header" WIDTH="300" HEIGHT="40" ID="header" /></A></TH>';
} else {
echo '    <TH SCOPE="col"><A HREF="index.html"><IMG SRC="Images/BANNER-bonw.gif" ALT="FilePirate" NAME="header" WIDTH="300" HEIGHT="40" ID="header" /></A></TH>';
}
echo '  </TR>
  <TR>
    <TD>'.$RET.'</TD>
  </TR>
  <TR>
    <TD>Copyright© Damon Hosting 2007.  All Rights Reserved.</TD>
  </TR>
</TABLE>
</BODY></HTML>';
}

?>

 

Now my problem is that once in a while, and with certain adresses it will show up as a blank white page.  Is this possibly my header calls?  Is this a coding error?  Please tell me 'bout it :D.

Link to comment
Share on other sites

RIGHT-CLICK VIEW SOURCE ON THE BLANK PAGE:

 

"<?PHP

include('./HTML/html.php');

 

    header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // some day in the past

    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");

    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");

 

$RET = '<H4>Welcome!</H4><H2><A HREF="Upload.html">Upload A File</A> | <A HREF="Download.html">Download A File</A></H2>';

html('Home',$RET);

 

?>"

Link to comment
Share on other sites

Sorry for re-replying but this site won't load the "edit" boxes...  damned ajax...

 

my fastcgi.log shows:

 

06/Oct/2007:22:09:04 -0700	SUID: 0	PUID: 0	RUID: 0	URI: 	Reading 0 bytes failed = The process cannot access the file because it is being used by another process.
06/Oct/2007:22:09:04 -0700	SUID: 0	PUID: 0	RUID: 0	URI: 	timeout-header2!
06/Oct/2007:22:11:42 -0700	SUID: 0	PUID: 0	RUID: 0	URI: 	Reading 0 bytes failed = The process cannot access the file because it is being used by another process.
06/Oct/2007:22:11:42 -0700	SUID: 0	PUID: 0	RUID: 0	URI: 	timeout-header2!
06/Oct/2007:22:17:13 -0700	SUID: 1	PUID: 1	RUID: 0	URI: 	Reading 0 bytes failed = The process cannot access the file because it is being used by another process.
06/Oct/2007:22:17:13 -0700	SUID: 1	PUID: 1	RUID: 0	URI: 	timeout-header2!

 

My acess.log shows:

64.59.144.23 - - [06/Oct/2007:22:11:36 -0700] "GET / HTTP/1.1" 302 5 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
64.59.144.23 - - [06/Oct/2007:22:11:43 -0700] "GET /./FilePirate HTTP/1.1" 301 421 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
64.59.144.23 - - [06/Oct/2007:22:11:43 -0700] "GET /FilePirate/Upload.html HTTP/1.1" 200 1015 "http://damon.zapto.org/FilePirate/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
64.59.144.23 - - [06/Oct/2007:22:11:54 -0700] "GET /FilePirate/Download.html HTTP/1.1" 200 683 "http://damon.zapto.org/FilePirate/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
64.59.144.23 - - [06/Oct/2007:22:12:09 -0700] "GET /FilePirate HTTP/1.1" 301 417 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
64.59.144.23 - - [06/Oct/2007:22:12:09 -0700] "GET /FilePirate/ HTTP/1.1" 304 0 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
***********
64.59.144.23 - - [06/Oct/2007:22:24:16 -0700] "GET /FilePirate/ HTTP/1.1" 304 0 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
64.59.144.23 - - [06/Oct/2007:22:24:16 -0700] "GET /FilePirate/ HTTP/1.1" 304 0 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"
64.59.144.23 - - [06/Oct/2007:22:24:17 -0700] "GET /FilePirate/ HTTP/1.1" 304 0 "" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322)"

 

hmm it says it returned code 304!?!?!?!?!? wtf its not permanently moved...?

 

 

Ane yes apparently its been sent to the browser.  PHP-CGI.exe runs under tasklist.exe (taskmanager dos version) and the script worked about 10 minutes ago without me changing anything.  when I go to my server using ip 127.0.0.1 I get error 500 INTERNAL SERVER ERROR but I dont get this error when I use damon.zapto.org, localhost, or my 24.* ip adress...?

Link to comment
Share on other sites

I am using abyssws 1.5 or something like that, I downloaded (upgraded) it today.  WAMP returned 500 internal server error on all my ip adresses so im trying out abyssws just for now.

 

I have PHP working, a simple :

 

<?=$_SERVER['PHP_SELF'];?>

works fine in html files.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.