Using a php to copy a dir and when finished to redirect browser ie
1. print "wait" message in browser.
2. copy the dir
3. finished copy redirect page
but noticed if dir is large (ie takes a long time) it is copied but the redirect does not happen, still see "wait" message. If time is few mins then seems to work but once higher eg 15mins (yes big dir) then see the problem.
<?php
set_time_limit(0); <<< otherwise PHP times out script execution
--do the dir copy---
echo "<script type='text/javascript'>
window.location.href='home.php';
</script>";
?>
If you replace the copy with a sleep() you also get a problem ie works for low values eg 5 secs but not higher ones eg 120sec.
Running on sun box with apache - tried increasing httpd "httpd.conf"
Timeout 300
(and restarted httpd) but made no difference
?>