|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-04-27 18:33 UTC] mfischer@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 18:00:01 2025 UTC |
I want to automaticly save some webpages. To do this i use a loop which requests the data. About 9 out of 10 times it goes without problems, but sometimes the script hangs at the line with fopen($link,"rb"); saying : Maximum execution time of 30 seconds exceeded in ........ for ($i=0;$i<25;$i++) { $link = someURL; $fp=fopen($link,"rb"); } I also tried without any results: -sleep(1); -fclose($fp); -fopen($link,"r"); // this is "r" instead of "rb" -installing everything again on a new windows If i then run the same program again i dont get any problems. I know for sure the URL i open are available, but even when they are not available it should give a warning and not hang. If you want to reproduce the error just open 300 links with fopen under windows.