Re: Browser displays blank page, while request still being handled

From: Date: Tue, 09 May 2006 18:59:31 +0000
Subject: Re: Browser displays blank page, while request still being handled
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-235809@lists.php.net to get a copy of this message
General update... We've finally isolated the real problem (or so we hope :-s) which is copying the files from dir A to dir B. After commenting out pieces of code in the script, it became clear that the blank page only appeared when the copy operations were performed. That's why I've started testing with a very, very basic script: <?php if ($dh = opendir("/var/www/web4/html/extdoc/")) {
       print("COPY START<br />");
       while (false !== ($file = readdir($dh))){
           if (is_dir("/var/www/web4/html/extdoc/".$file)) continue;
           if ($file != "." && $file != "..") {
               if(!copy("/var/www/web4/html/extdoc/".$file,"/var/www/web4/html/publish/extdoc/".$file)) {
                   print("ERROR!!!<br />");
               }
           }
       }
       closedir($dh);
       print("COPY FINISHED<br />");
} ?> So, what are the results?! Just take a look at this screenshot: http://www.xi-quadrat.de/rolf/pics/headers.jpg What are you looking at? Repeated calls to the same piece of php-script. If you look at the column labeled "Content type", you see that there are 2 results: "text/html" and "application/x-unknown-content-type (the ones that are crossed-out should be ignored). The latter are the ones that only gave me a blank page as result. The "text/html" responses are the correct ones. In the bottom-right part of the screenshot, you'll see that the header info received for those incorrect responses was all but complete, altough it shows a status of OK - 200. I've also tried using @copy, but this didn't seem to help either. I still can't figure out why I'm becoming that stupid blank page... Anywho... I hope this helps other people help me :-s Greetz Rolf Wouters

« previous php.general (#235809) next »