file_exists problems

From: Date: Tue, 12 Sep 2000 15:46:16 +0000
Subject: file_exists problems
Groups: php.general 
Request: Send a blank email to php-general+get-16373@lists.php.net to get a copy of this message
i can get this to work....and i have no idea why.. $model = "/tvhc/homes/stonecreek/" .$model. ".jpg"; if(!file_exists($model)){ print" <img src=\"$model\" border=\"0\" alt=\"\"><br> "; }else{ print" <img src=\"/tvhc/homes/stonecreek/nothere.jpg\" border=\"0\" alt=\"\"><br> "; } it should check to see if the file exists and if it does display that model..if not it should display a images saying that the model that you requested hasn't been posted yet...blah, blah..... can anyone tell me where i'm going wrong? ~kurth Kurth Bemis - Network/Systems Administrator, USAExpress.net/Ozone Computer kurth@usaexpress.net http://www.usaexpress.net/kurth ICQ - 6624050 Call Sign - N1TYW PGP key available - http://www.usaexpress.net/kurth/pgp Fight Weak Encryption! Donate your wasted CPU cycles to Distributed.net (http://www.distributed.net)

« previous php.general (#16373) next »