in reply to How to check If file exists?
to:if ( -e '$path.$imagename')
as single quotes won't interpolate and you are thus looking for a file called: $path.$imagename.if ( -e "$path.$imagename")
update: upon looking at this further you will probably want to drop the dot inside the quotes, as the dot does not concatenate inside quotes either.
update2: Seems like b10m++ mentioned this below as I was updating.
update3:I missed the fact that you are looking at a url rather than a file... as merlyn's answer below points out...
-enlil
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How to check If file exists?
by Elijah (Hermit) on Dec 09, 2003 at 21:46 UTC | |
|
Re: How to check If file exists?
by b10m (Vicar) on Dec 09, 2003 at 21:44 UTC |