There are alot of commands to create and manipulate files.
check out fopen(), fputs(), fread(). They will all be very helpful. And there is alot more than that.
Be sure to visit http://www.php.net for the rest of them.
If you would like more help, feel free to e-mail me.
-Travis