[PHP] Browser timeout
Hello, I am running a script that process the user's request, which usually takes about 40 seconds. The problem is that on Internet Explorer 6, it timeouts - probably because no response was sent. How do I solve this problem? Since I tried some things and header() messages, nothing worked.
Re: [PHP] Browser timeout
Hi Daniel, Can you supply more information regarding this script? what it does? Regards, Nitsan דרך אגב נחמד לראות פה עוד ישראלים שבת שלום
Re: [PHP] Browser timeout
Hello, I am running a script that process the user's request, which usually takes about 40 seconds. The problem is that on Internet Explorer 6, it timeouts - probably because no response was sent. How do I solve this problem? Since I tried some things and header() messages, nothing worked. Run the script in the background, and give the user a page that self-refreshes every 10 seconds. Or, better yet, use AJAX. -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я ä-ö-ü-ß-Ä-Ö-Ü
Re: [PHP] Browser timeout
On Fri, 2009-02-27 at 16:33 +0200, דניאל דנון wrote: Hello, I am running a script that process the user's request, which usually takes about 40 seconds. The problem is that on Internet Explorer 6, it timeouts - probably because no response was sent. How do I solve this problem? Since I tried some things and header() messages, nothing worked. You could try looking at the flush() function (http://uk3.php.net/flush) to force some output to be sent to the browser before the entire script has been executed. It's most likely that your script is taking a long time to process, and so IE is falling over as it's not hearing back from the server. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Browser timeout
On Sat, 2009-02-28 at 02:42 +0200, דניאל דנון wrote: The problem is - What to send? Since I'm using a template-class, I did not include an option to send only the header(html, head), is there any way other then sending the template's HTML to solve this problem? On Sat, Feb 28, 2009 at 2:15 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2009-02-27 at 16:33 +0200, דניאל דנון wrote: Hello, I am running a script that process the user's request, which usually takes about 40 seconds. The problem is that on Internet Explorer 6, it timeouts - probably because no response was sent. How do I solve this problem? Since I tried some things and header() messages, nothing worked. You could try looking at the flush() function (http://uk3.php.net/flush) to force some output to be sent to the browser before the entire script has been executed. It's most likely that your script is taking a long time to process, and so IE is falling over as it's not hearing back from the server. Ash www.ashleysheridan.co.uk Depends what templating class you're using, it might be a built in feature? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php