Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2008
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts

    create a separate folders

    hi,


    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.
    Last edited by swethak; 07-31-2008 at 06:35 AM. Reason: adding content

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    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.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #3
    New Coder
    Join Date
    Jul 2008
    Location
    India
    Posts
    39
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •