OK, so go for it. Maybe you'll want to go to the documentation and look up "file_exists".
chrishea
Nearly a Posting Virtuoso
1,485 posts since Sep 2008
Reputation Points: 223
Solved Threads: 243
Skill Endorsements: 5
Perhaps Googling file_exists will give you a few examples? Anyway, this is the first example from the page you supposedly read:
<?php
$filename = '/path/to/foo.txt';
if (file_exists($filename)) {
echo "The file $filename exists";
} else {
echo "The file $filename does not exist";
}
?>
Apologies to php.net for the reproduction.
Doesn't that answer your question?
What is it you don't understand specifically?
diafol
Keep Smiling
10,675 posts since Oct 2006
Reputation Points: 1,632
Solved Threads: 1,514
Skill Endorsements: 57
Question Answered as of 1 Year Ago by
chrishea
and
diafol