|
Posted by Rik on 08/13/07 13:49
On Mon, 13 Aug 2007 14:59:07 +0200, Bob Sanderson
<news@LUVSPAMbobsanderson.com> wrote:
> Thanks for the reply but I'm a beginner with PHP and frankly, don't
> understand any of what you said. Is there another, simple way to
> determine if a file exists?
A 'file' is not the proper term for something accessed by the HTTP
protocol. As others have indicated, if the file is on the same server, you
should use the local filesystem instead of the long way around by http.
If it is on another server however, look at the user contributed notes at
<http://www.php.net/file_exists>, several options for determining wether
an URL can be 'found' are given there.
--
Rik Wasmus
Navigation:
[Reply to this message]
|