If you have the right permission you can create an empty file just by opening it - without using exec(). example:
$fp = fopen("/home/me/subdir/myfile.txt", "a+");
fclose($fp);
fopen() in the "a+" - mode tries to open a file reading and writing, it attempts (!) to create this file, if it didn't exist before.
Michael aka Unique