I am working on a application written by someone else that is supposed to create a simple enrolment form from a admin page. The purpose is to make many different enrollment forms for different participants but be able to do it all from the admin page. The problem is that the admin page only populates a database and gives the enrollment application an ID#. The company administrator still has to manually create a folder and drop in a index.php template and modify the $ID variable in order for the enrollment form to work.
What I want to do is have php create the folder and write the index.php file with the correct $ID allready in it so the whole thing is automatic and doesn't require the administrator logging into the server and having to manually do things like create the directory and copy in the index.php. The point of the app is so the administrator can create the app with no knowlege of hosting, directories, or php but without this functionality it is defeating the purpose of the app.
If I create a directory with
Code: Select all
mkdir("./someAppName", 0700);
Any suggestions or advice on doing this so when the admin is logged into the app, the app will be able to run and have full permissions to create and delete files and directories?
Thanks