[PHP-DEV] Suggestion: If URL Loads Initially, then stop

2005-04-13 Thread 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 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DEV] Suggestion: If URL Loads Initially, then stop

2005-04-13 Thread David Zülke
http://www.php.net/manual/en/function.get-headers.php

- David


 -Original Message-
 From: Ryan Hemelaar [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, April 13, 2005 2:55 PM
 To: internals@lists.php.net
 Subject: [PHP-DEV] Suggestion: If URL Loads Initially, then stop
 
 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
 
 --
 PHP Internals - PHP Runtime Development Mailing List
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DEV] Suggestion: If URL Loads Initially, then stop

2005-04-13 Thread Xuefer
use HEAD request

On 4/13/05, Ryan Hemelaar [EMAIL PROTECTED] wrote:
 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
 
 --
 PHP Internals - PHP Runtime Development Mailing List
 To unsubscribe, visit: http://www.php.net/unsub.php
 


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php