File exists for webdav

function fileExists($path){
return (@fopen($path,"r")==true);
}

$filename = 'http://pathtoafile.php';
if(fileExists($filename)) echo 'Exists';
else echo 'sorry, come again';

0 Comments

You must be logged in to post a comment.