I found my problem.

>From manual:
"file_exists() will not work on remote files; the file to be examined must
be accessible via the server's filesystem. "

File is on another server. Is there a way to check if file exists on another
server?

Craig ><>
[EMAIL PROTECTED]


-----Original Message-----
From: Craig Westerman [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 06, 2002 7:58 PM
To: php-general-list
Subject: [PHP] file_exists


What am I doing wrong? I get parse error between first echo statement and
else.

Thanks

Craig ><>
[EMAIL PROTECTED]


<?php
$fn = "image.gif";
if (!file_exists($fn)) {
echo "<img src=noimageexists.gif>";
else
echo "<img src=$fn>";
}
?>


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to