Thank for taking time to answer my question! As I mentioned in my post, I have configured and tested php within brower. It worked, so it is not php side issue.
My environment: Flex Builder 4.1 with AIR 2.6, it is an AIR application. I tested within IDE as well as released version. Thanks! George --- In firstname.lastname@example.org, "mitek17" <mitek17@...> wrote: > > 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 email@example.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 > > >