Re: Checking for existence of file

From: Date: Tue, 25 Mar 2003 19:24:45 +0000
Subject: Re: Checking for existence of file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-140991@lists.php.net to get a copy of this message
> What I'd like to do is check the directory 'images' first to see if > 'mast_$img_pick.jpg' exists and if it doesn't, call a different image such > as 'mast_default.jpg'. I'm sure this isn't hard, I'm just not sure how > to > start. Maybe you can start with file_exists() or is_file() and somehow work from there??? ---John Holmes...

« previous php.general (#140991) next »