Announcement

Collapse
No announcement yet.

Making new pages

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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

      Comment


      • #4
        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


        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

        Comment


        • #5
          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

          Comment

          Working...
          X