tcorbeil Posted March 21, 2007 Share Posted March 21, 2007 Here's a question: If I have a main page and wish to have a user click on a button with the intent to create a subpage of the main.. can this be done? Lets say I have my main page on my server in a directory called main, once the user clicks on a button, the contente of the directory called main is copied and pasted into a new directory which would be named by the user.. I know this may not be an easy task but if someon could point me in the right direction, it would be much appreciated.. Thanks. T. Link to comment https://forums.phpfreaks.com/topic/43610-creating-a-duplicate-page-on-server/ Share on other sites More sharing options...
fert Posted March 21, 2007 Share Posted March 21, 2007 http://us3.php.net/manual/en/function.copy.php http://us3.php.net/manual/en/function.mkdir.php That's all you would need to do this Link to comment https://forums.phpfreaks.com/topic/43610-creating-a-duplicate-page-on-server/#findComment-211777 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.