Forum Moderators: coopster

Message Too Old, No Replies

PHP noobie question

I know how to do this in Coldfusion, but...

         

Rossv1

3:48 pm on Apr 26, 2004 (gmt 0)

10+ Year Member



Total PHP noob, here..

I'm an experienced Cold Fusion programmer, but I'm trying to help a friend with a PHP issue. She wants to check to see if an image file exists, if it does, then display the image, if not then display a default image. CF has a CFHTTP tag that could check the status of the image file...is there a similiar command in PHP? I've been checking some PHP reference sites, but I haven't found exactly what I'm looking for...

Thanks in advance!

jatar_k

4:47 pm on Apr 26, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



maybe try file_exists ( string filename) [ca.php.net]