|
Posted by Rik on 08/17/06 14:12
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
Navigation:
[Reply to this message]
|