note 82169 rejected from function.file-exists by nlopess

From: Date: Sun, 30 Mar 2008 11:25:29 +0000
Subject: note 82169 rejected from function.file-exists by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-137745@lists.php.net to get a copy of this message
Note Submitter: halil dot tosun at club-internet dot fr ---- Hi there, I have a php file that im using for a flash photoslide show. I need to show the users without a avatar. But is not working. Can somebody help me please. Here is my code. ... echo '<?xml version="1.0" encoding="ISO-8859-1"?><slideshow>'; while($a1 = mysql_fetch_assoc($r1)) { $filename = 'file/pic/user/'.$a1[user].'_120.jpg'; if (file_exists($filename)) { echo '<photo image="'.$filename.'" url="'.$a1[user].'" info="'.$a1[user].'"/>'; } else { echo '<photo image="design/pic/noimage_120.jpg" url="'.$a1[user].'" info="'.$a1[user].'"/>'; } } echo '</slideshow>'; ?>

« previous php.notes (#137745) next »