note 13760 deleted from function.file-exists by jimw
| From: | jimw@php.net | Date: | Wed, 02 Jan 2002 01:01:45 +0000 |
| Subject: | note 13760 deleted from function.file-exists by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-24079@lists.php.net to get a copy of this message | ||
ok, file_exists does not traverse the include path ?
i use this function in include and, apparently, it's work
//in file functions.php
function print_image ($image) {
if (file_exists("${image}")) {
$size = GetImageSize(${image});
return "<img src=\"${image}\" border=\"0\" $size[3]\">";
}
else return "Error: file $image no found.";
}
//EOF functions.php
enjoy