I need assistance with the development of a simple tool (php). When an end user clicks on a publish button on a particular HTML page (ie. http://www.domain.com/8209384ui2u30942/example.html) the web page "...example.html" should duplicate itself AUTOMATICALLY within the ".../8209384ui2ui2u30942/" folder, and rename the duplicated file "index.html". If there is an existing file called "index.html", it should over write it.
My server currently creates random folder names (ie. http://www.domain.com/8209384ui2u30942/) so each long code will be different from user to user.
Can someone help...?