You are here: Re: [PHP] FileExists? « PHP « IT news, forums, messages
Re: [PHP] FileExists?

Posted by M on 10/17/68 11:31

Gustav Wiberg wrote:
> Hi there!
>
> File_exists doesn't seem to work with URLs that point to another domain.
> What to use?
>
> $x = fopen(http://www.stammis.com/getstart.php);
> if file_exists($x) ....
> ....
> ????

file_exists() takes filename as parameter, not file pointer.

besides, spare the one http request and use @fopen() (@ will suppress
eventual warning), it will speed up your script.

 

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

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