|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-07-09 10:15 UTC] guichi at club-internet dot fr
Hello set_error_handler doesn't with maxtime error(Fatal error: Maximum execution time of 1 second exceeded in E:\www\php\parse_inc.php on line 28 )Here the 1 sec was for the test. Is it normal? The code works with error like echo $test; // with test not initialized Regards Niorj PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 21 14:00:01 2025 UTC |
Sorry, I can't solve a problem. I want to read a url, but sometimes the WEB server is sleeping. The fgets takes to many tiimes and I reach the maxtime_php. I want to take the hand to goes on the script, but I can't, what can I do? Is there a way to by pass this problem? regards Niorj function readAfile ($adr) { set_time_limit (60); $File = fopen($adr,"r"); $Buffer = ""; if($File) { while (!feof($File)) { $Buffer .= @fgets($File, 1000); } fclose($File); } return $Buffer; }