View Single Post
Old 09-07-2009, 02:57 PM  
Voodoo
♥ ♦ ♣ ♠
 
Voodoo's Avatar
 
Industry Role:
Join Date: Sep 2002
Location: Porn Valley, CA
Posts: 10,590
PHP Checking if URL/File Exists... Return True/False

Code:
<?php if(file_exists("http://www.site.com/images/$id/misc6.jpg")){ DO THIS }?>
For some reason this doesn't seem to work. When I remove this check, the image shows up under { DO THIS }, however, the check doesn't seem to be returning a TRUE on this statement. What's the best way to return TRUE/FALSE for a remote image if it exists?

EDIT: Note... $id is assigned above this statement.
__________________

"I'm selflessly supporting the common good, but only coincidentally looking out for No.1."
Voodoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote