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

Posted by Jasper Bryant-Greene on 10/09/72 11:31

On Mon, 2005-11-07 at 20:45 +0100, 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) ....

You are trying to check if a file pointer exists. You want to check if
the file exists. Try:

if( file_exists( "http://www.stammis.com/getstart.php" ) ) ....

--
Jasper Bryant-Greene
General Manager
Album Limited

e: jasper@album.co.nz
w: http://www.album.co.nz/
b: http://jbg.name/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand

 

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

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