in reply to Re: Check if image file exists
in thread Check if image file exists
Ideally I'd like to use something like this for the first IF statement, but it doesn't work.$picture="/$username/$picture"; if ($picture && -f $picture ) { $thumb30 = "<img src=\"$picture\" width=30 height=30 border=0> +"; } else { $thumb30 = "<img src=\"/images/noavatar50.png\" width=30 h +eight=30 border=0>"; }
if (($picture) && ($scope ne "Private") && (-f $picture)) {
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Check if image file exists
by aaron_baugher (Curate) on Apr 08, 2012 at 03:50 UTC |