Hi,

Yep, there is PHP setting in php.ini for that

max_execution_time = 30 ; Maximum execution time of each script, in seconds

PS php_error.log is a good thing to check

Cheers,


--- In flexcoders@yahoogroups.com, "georgemeng2011" <georgemeng2000@...> wrote:
>
> 
> Hello,
> 
> I have very simple code to call a simple PHP page. PHP page will insret
> 2000 records to mysql table, takes about 2 minutes.
> 
> On PHP side, it is fine, I tested the php page within browser, it ran
> for 2 minutes and stoped. (I have configured on PHP to run longer than
> normal.)
> 
> One Flex side, I call PHP page using HTTPService with requestTimeout =
> 300 to avoid timeout. Here is the code:
> 
>      var ws:HTTPService = new HTTPService();
>      ws.requestTimeout = 300;
>      ws.useProxy = false;
>      ws.url = "http://localhost:85/test.php
> <http://localhost:85/test.php> ";
>      ws.addEventListener(FaultEvent.FAULT, fault );
>      ws.addEventListener(ResultEvent.RESULT, result);
>      ws.send();
> 
> However, after 30 seconds, it return fault event. I really don't
> understand.
> 
> Can anyone let me know how I do this correctly?
> 
> Thank you!
> 
> George
>


Reply via email to