Quick Search:
 
 PHP Code: Check if an image exists (GD) Jump to:  
Category: >> PHP Code >> Check if an image exists (GD)  

<< lastnext >>

Snippet Name: Check if an image exists (GD)

Description: Check if an image exists using the GD library.

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: March 01st, 2009

<?PHP 
 
//check if image exists 
IF($img = @GETIMAGESIZE("testimage.gif")){ 
     ECHO "image exists"; 
}ELSE{ 
     ECHO "image does not exist"; 
} 
 
?>


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org