I'm using PHP 4.3.11, and I'm in the middle of writing a page that retreives other pages and displays them.
The problem I'm having is that after it gets the page and makes some changes to it, the script is supposed to display the whole page, then save a copy of it to the server as shown in the excerpt of code below:
echo $done; //$done is the variable that has site stored to it. $fp = fopen("/home/content/k/s/t/ksteuber/html/php_uploads/logs/".$URL." - ".date("F j, Y, g:i a"),"w"); fwrite($fp,$done); fclose($fp);
Very, very straight forward. However, it only shows about half of the page, and doesn't write any file, so I can only assume that the script just stops halfway through the command. I thought it might be a time issue, but the page takes 1.320 sec to load from when I send the request for the page to when I recieve it, and the script claims that it has spent 0.450 sec up to the point that it sends the file (I believe scripts have a 30 sec timeout, not .5 sec)
Does anybody know why the script would just stop?
Note: The result of the script can be found by going to http://www.kirksteuber.com/ and clicking on "In page proxy"
The full text of the code can be found at http://www.kirksteuber.com/parser.txt