View Full Version : create a separate folders

07-31-2008, 06:32 AM

We need to make the changes to the folders as follow:

Domain Name
Super Admin

Dealer = domain.com/dealer/ID/pagename [front end]
Dealer = domain.com/dealer/ID/admin [back end]

Simply gather the files into organize folders, the way I asked you.

plz tell that how we create the folders by using above way.How we create the separate folders.plz help me.

07-31-2008, 08:20 AM
PHP's make directory is the function mkdir. It requires a pathname, and has optional arguments for mode, recursive creation and context (in PHP5+). The command you'll use are mkdir('dealer/ID', 660, true). Other than that I don't know what you're asking.

07-31-2008, 11:59 AM
Yes, you can create new directories using mkdir() function in PHP.
You can move the files to given folder using rename() function.

Please elaborate your query more to get accurate answer.