Ninjakreborn Posted October 4, 2006 Share Posted October 4, 2006 I am working on something, it will end up dynamically creating a file near the end of the process, I need to take that file template1.php or template2.php whichever file I am duplicating, and I need to put it inside a folder, inside another folder.The folder that is holding my sub-domains is userpages which is one level deepso it's www.domain.com/userpagesthen in that directory, I am going to need to create a directory, where I can specific the name, and put the file I am duplicating within that directory, any direction would be appreciated. Quote Link to comment Share on other sites More sharing options...
trq Posted October 4, 2006 Share Posted October 4, 2006 [url=http://au.php.net/mkdir]mkdir[/url]. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted October 4, 2006 Share Posted October 4, 2006 look into mkdir (php.net/mkdir) for creating directories and copy (php.net/copy) or rename (php.net/rename) for duplicating files. Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted October 4, 2006 Author Share Posted October 4, 2006 ah ok, that will get me on the right track, thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.