RE: [PHP] Check Url Exists
| From: | Mike | Date: | Fri, 28 Jan 2005 15:23:03 +0000 |
| Subject: | RE: [PHP] Check Url Exists | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-207599@lists.php.net to get a copy of this message | ||
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@iamjochem.com]
> Sent: Friday, January 28, 2005 10:09 AM
> To: binoy@softwareassociates.co.uk
> 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
>