+ Reply to Thread
Results 1 to 5 of 5

Thread: Making new pages
      
   

  1. #1
    Phoubers's Avatar
    Phoubers is offline Sergeant
    Join Date
    Oct 2007
    Location
    :D
    Posts
    34

    Wink Making new pages

    I've heard you can use php to make new pages in your site. is this true? If so how can I do this with lets say a new member's name.
    Ex: Phoubers signs up, so how can i make it where he gets his own subdomain for his userpage as, phoubers.sitename.com

    Thanks
    No its not Fowbers its foobers :D

  2. #2
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Making new pages

    Its possible to use php to generate a new file, if you know enough html to make the page itself you can generate a page like

    http://yoursite.com/username.html or http://yoursite.com/username.php.

    Directories are also possible, so you can make http://yoursite.com/username/index.html (or .php).

    Sub domains are a whole lot trickier. For directories and files you just have to execute simple php functions, with a subdomain you would either have to link it in with cpanel, or execute unix code to add route a directory as a subdomain (If you even have access to execute the correct code with a basic vodahost account, you might need root access, I can't say for sure I have never tried to make a subdomain dynamically)

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  3. #3
    Phoubers's Avatar
    Phoubers is offline Sergeant
    Join Date
    Oct 2007
    Location
    :D
    Posts
    34

    Default Re: Making new pages

    Ok theres a start. Two two things--
    1. If you know of a site or you yourself know a way to make pages and directories, Id really appreciate the help.
    2. I have complete access to my site/cpanel


    The catch is, I have no idea what unix code is :P Ive only worked with html/css/php and javascript.

    Your help would be really apprecaited
    No its not Fowbers its foobers :D

  4. #4
    Watdaflip's Avatar
    Watdaflip is offline Major General
    Join Date
    Sep 2005
    Location
    Cincinnati, Ohio
    Posts
    2,119

    Default Re: Making new pages

    1)

    Its a little more in depth that I can explain here, so heres some resource links

    Making files
    http://www.tizag.com/phpT/files.php (probably one of the best php tutorials on the net, at least I think so)

    Making directories
    http://us.php.net/manual/en/function.mkdir.php

    2) That might not be enough access to the server (I'm not really sure what goes on behind the scenes when a subdomain is made, I've never needed to know. I know some functions like making an email address on the server is possible with php code executing pages in cpanel, but it might also require something to be executed on the operating system of the server.. idk)

    PS. I meant to say unix commands (not code). Vodahost uses Linux servers which is based on unix. Some things are done by executing console commands, but those require either ssh or root access, which isn't given to vodahost users.

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

  5. #5
    Phoubers's Avatar
    Phoubers is offline Sergeant
    Join Date
    Oct 2007
    Location
    :D
    Posts
    34

    Default Re: Making new pages

    Ok thanks for the info im going to go do some codes, i post if i need some help, Thanks watdaflip :)
    No its not Fowbers its foobers :D

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49