Or you can use fopen() - http://us3.php.net/manual/en/function.fopen.php -
check the file handle to see if it worked and then close the handle.

Just remember you need allow_url_fopen allowed in your php.ini file.

-M 

> -----Original Message-----
> From: Jochem Maas [mailto:[EMAIL PROTECTED] 
> Sent: Friday, January 28, 2005 10:09 AM
> To: [EMAIL PROTECTED]
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Check Url Exists
> 
> Binoy AV wrote:
> >  Hi,
> > 
> >    In my php file, I want to check whether the url(residing 
> on  another server) is existing or not. 
> > 
> 
> is that I question? (PS I want a car with 200BHP)
> 
> in case it was a question then have a look at the cURL 
> extension - it allows you to 'hit' another server as if your 
> script is a regular browser, you can then check the returned 
> headers to see if the page was found.
> 
> >  Thanks in advance.
> > 
> >  Binoy
> >     
> > 
> >  
> > ______________ ______________ ______________ ______________ 
> Sent via 
> > the WebMail system at softwareassociates.co.uk
> > 
> > 
> >  
> >                    
> > ---
> > Scanned by MessageExchange.net (14:23:58 SPITFIRE)
> > 
> 
> --
> PHP General Mailing List (http://www.php.net/) To 
> unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to