On May 10, 2006, at 10:54 AM, Rolf Wouters wrote:
Yet another update.
Strange thing happened. I fixed the problem... It's not a clean
solution, it's not the right solution, but for now, it'll (have to)
do :-)
I changed my little test-script to include directives like
max_input_time, set_time_limit(0) etc. Than I thought, why not try
to generate some output when copying files!??! So I did... and
you know what, all of a sudden I'm seeing my response page every
single time I call my script :-D
So our quick-n-dirty-but-we-know-its-wrong-solution is gonna be to
have the script generate some output (a single space) for each file
it has copied (i.e. print(" ")).
After testing it with the problem-app, we feel confident this is a
viable, temporary, solution. At least untill we complete our PHP5
rewrite of the Photofresher :-)
I would like to thank all of you for your time, patience and advice.
If anyone has any ideas on why this is working, feel free to let me
know :-)
Wild guess is the browser is receiving *something* before it times out?
I've only been following this off and on so slap me if I say
something stupid, but as I understand it the script you're having
problems with creates a 'gallery/page/something' for photogs by
copying a lot of files around?
Why are you just outputting a space then? Why not output something
useful to the person sitting and staring at their screen, like "Image
so-and-so processed...<br />\n" so they have a clue as to what's
going on behind the scenes and an idea of how long it's going to take
to finish? Just a thought.
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php