Instead of unlink() ?
Posted: Sat Aug 16, 2003 12:42 am
I have a script that creates folders and files on my server, but in creating them php holds control of the files (I can't edit or update them). By viewing the source of the files, and then using unlink() I can delete the files and manually recreate them so that they are free of php's control but is there an easier way to do this? Perhaps a command I'm overlooking for releasing php's control from a created file without deleting it as unlink() does? That way the file can later be edited or updated with ease.
Here's the part of the code I'm using to create the folders and files if it helps:
mkdir("$user");
touch("$user/index.php");
These lines are followed by some simple file writing lines that build the index.php page based on user input from a form, but that's about it.
Thanks in advance,
Scott
Here's the part of the code I'm using to create the folders and files if it helps:
mkdir("$user");
touch("$user/index.php");
These lines are followed by some simple file writing lines that build the index.php page based on user input from a form, but that's about it.
Thanks in advance,
Scott