Posted by sree on 08/17/06 15:08
Hi Rik,
Do you know the exact options curl???
Rik wrote:
> sree wrote:
> > Hi,
> >
> >
> > i want to check whether a file from remote server is existed or
> > not.
> >
> > The file_exists() checks for local server only.
>
> Actually, starting at PHP5 it will work on some url's.
>
> > But i want a function
> > that checks the remote server.
> >
> > If anyone knows please help..
> >
> > thanks in advance...
>
> I'm not sure exactly how. You could possibly use fsockopen en send a HTTP HEAD
> request, and check the response. There may be better options in curl available.
>
> Grtz,
> --
> Rik Wasmus
[Back to original message]
|