PHP file_exists

Erst mal gucken ob die Datei überhaupt existiert.

if (file_exists('/apps/rss.php')) {
 echo 'Ja, die Datei existiert!';
} 
else {
 echo 'Nein, existiert nicht!';
}

https://www.php.net/../function.file-exists.php

1285 Klicks #669

Kommentare (0)

Du musst eingeloggt sein, um zu kommentieren.