Results 1 to 3 of 3

Thread: How?

  1. #1
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default How?

    How do you make pages like www.domain.com/?=yesy

  2. #2
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    you would just set an include, inside an if statment thats there to detect wether yesy works "/ or if u wnated the

    http://domain.com/index.php?page=thispage

    like on thybag

    PHP Code:
            <?php
    $page 
    basename($page);
    if(!
    $page)
    include(
    "start.php");

    else

    if(
    file_exists("$page.php"))
    {
    include(
    "$page.php");
    }
    else
    {
    echo 
    'Page Does Not Exist ';
    }
    ?>
    then say
    http://domain.com/index.php?page=thispag

    would include the page thispag.php

    or

    http://domain.com/index.php?page=cat

    cat.php

    if you follow

  3. #3
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    I understand, thanks mentor

Posting Permissions

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