Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.18 KB | None | 0 0
  1. $filename_with_path = TEMPLATEPATH . '/yourimagedir/' . $filename;
  2.  
  3. if (file_exists($filename_with_path)) {
  4.     echo "The file exists";
  5. } else {
  6.     echo "The file does not exist";
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement