Code: Select all
$fp = fopen("filename", "r");
if($fp) { File exists. } else { File does not exist. }
Moderators: egami, macek, gesf
Code: Select all
$fp = fopen("filename", "r");
if($fp) { File exists. } else { File does not exist. }
danofpaco wrote:Is there a way to check wether or not a file exists on a server, and return a boolean?