|
|
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";
}
?> |
|
|
|
|
|