Re: file_exists problems
| From: | faeton | Date: | Sat, 01 Dec 2001 07:43:01 +0000 |
| Subject: | Re: file_exists problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76300@lists.php.net to get a copy of this message | ||
Hello Prolog,
Hm... And what about:
print '<img src="/images/$filename">';
instead of readfile?
P> if(file_exists(/images/$filename))
P> {
P> readfile(/images/$filename);
P> }
P> else
P> {
P> readfile(images/npat.jpg);
P> }
------------------------------------------------
Ivan 'Faeton aka xetrix' Danishevsky
ICQ(240266) faeton@xemichat.com www.xemichat.com
::: Стоит только заострить вопрос, как сразу просят
закругляться. :::