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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php