Hello How can I test if a file (like an image) exists on server or not ? Kind regards
A Anonymous Guest Jun 11, 2004 #1 Hello How can I test if a file (like an image) exists on server or not ? Kind regards
gesf Active member Jun 11, 2004 #2 Use php's file_exists() function! Example: Code: <?php if (file_exists('/path/to/image.gif')) { echo "The given file exists!"; } ?> Gesf
Use php's file_exists() function! Example: Code: <?php if (file_exists('/path/to/image.gif')) { echo "The given file exists!"; } ?> Gesf