Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Andreas Lindner
Added: Feb 28, 2018 7:08 AM
Views: 9
Tags: no tags
  1. $filename = '/path/to/foo.txt';
  2. if (file_exists($filename)) {
  3.     echo "Die Datei $filename existiert";
  4. } else {
  5.     echo "Die Datei $filename existiert nicht";
  6. }