if you use a w like below $fp=fopen($filefullname, "w"); it will create the file if it dosen't already exist. Anyway to create a folder if it dosen't exist?
exec("mkdir -p /dir/to/create");
Make sure to leave off the actual filename though! Run into some problems if ya don't.
Chris King
The manual is a wonderful thing.
http://www.php.net/manual/en/function.mkdir.php
Also note that this wll note make multiple subdirectories.
The given example only works it '/dir/to' already exists.