PHP: if file doesn't exist then exit script
As John Conde said, you should negate the file_exists
function:
if (!file_exists($filename)) {
exit("Your file doesn't exist");
}
As John Conde said, you should negate the file_exists
function:
if (!file_exists($filename)) {
exit("Your file doesn't exist");
}