this might work.
<?php
$filename = '/path/to/foo.txt';
if (file_exists($filename)) {
echo "The file $filename exists";
} else {
echo "The file $filename does not exist";
}
?>
On Fri, 17 Sep 2004 15:04:44 +0800, Louie Miranda <[EMAIL PROTECTED]> wrote:
> im not sure if i coded one of my application wrong, i am displaying an
> image by displaying the itemcode and just adding a ".jpg" extension at
> the end.
>
> like this..
>
> $itemCode = $row['itemCode'];
> ..
> <img src=/images/$itemCode.jpg>
>
> i assumed before that i can show it all, but i found out that i cannot.
>
> my problem now is the $itemCode is on a database and the image
> filename is on directory.
> Will it be possible to detect a image file it exist or not?
>
> --
> Louie Miranda
> http://www.axishift.com
>
--
Louie Miranda
http://www.axishift.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php