Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15954 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64167 invoked by uid 1010); 13 Apr 2005 13:04:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 64152 invoked by uid 1007); 13 Apr 2005 13:04:25 -0000 Message-ID: <20050413130424.64140.qmail@lists.php.net> To: internals@lists.php.net Date: Wed, 13 Apr 2005 22:54:53 +1000 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Original X-Posted-By: 60.226.88.245 Subject: Suggestion: If URL Loads Initially, then stop From: ryan@royalfoods.com.au ("Ryan Hemelaar") Hi there, I don't know if this is the place to do it, but anyway. I have a suggestion for a new function that PHP could have: It will be similar to fopen, but instead of actually loading the URL, it starts loading the page, then once PHP knows that it's started loading, it will stop it before it's finished; then it would set the variable in the function's brackets as true. eg: Functname($URL;$trueorfalse). This could be used to check if a site is up without having to download the whole page. Regards, Ryan