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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Edward Vermillion wrote:

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?
It doesn't seem like the browser is actually timing 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?
MMYes... kind of like that. The photos are copied from the working-dir to the online dir, some XML-files are generated which are then read by a Flash-film, which is responsible for loading and displaying the photos.
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.
I'm only using the print(" "); because all other output is being accumulated in a string-variable $result. At the end of the request, that variable is put into $_REQUEST and read by the result-page, which displays the content $result.

I'm not sure why the original developers of the did it like this, and do agree with you that it would make more sense to show some kind of progress output. But we are re-writing the app for php5, and there will be some major changes, so maybe this will be one of them :-)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux