|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-10 13:24 UTC] bjori@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 23:00:02 2025 UTC |
Description: ------------ When you use file() to get a file over a network (internet) like file("http://www.php.net"); you will get an timeout error if there is no connection to the internet or the requested URL. There I suggest to add an additional (optional) attribute "int timeout" to this function, making php cancel the function call after x seconds.