OK, in PERL, i can check a file to see if it exists, by doing this:

Code:
if (-e "somefile.txt") {  ... }

which means "if this file exists, then do whatever block of code"...

how do i do the equivalent in PHP? i've looked and looked but couldn't find the answer.