RE: Check Url Exists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:jochem@xxxxxxxxxxxxx] 
> Sent: Friday, January 28, 2005 10:09 AM
> To: binoy@xxxxxxxxxxxxxxxxxxxxxxxx
> Cc: php-general@xxxxxxxxxxxxx
> Subject: Re:  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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux