You are here: Re: How to check remote file... « PHP Programming Language « IT news, forums, messages
Re: How to check remote file...

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация