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 7 of 7
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post

    how they make pages like www.something.com/q=2312?

    php question : how they make pages like www.something.com/q=2312

    and that number is the reference to a specific page
    which is i think .. is the efficient for large website to handle its numerous pages..

    how they made it .. i mean ... are those pages actually exist. like home.php and 2312.php ? i dont think the number indicates the actual page..

    how they connect them . . and how. .. how ?thanks

    * 6 hours ago
    * - 3 days left to answer.

    Additional Details

    2 hours ago
    can anyone show me some simple steps to it ? thanks

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,854
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Try google for apache search engine friendly urls

    Edit: Oops.. I misread your post, go with what rafiki said
    Last edited by abduraooft; 07-15-2008 at 12:26 PM.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    $_GET['q'] would get the value of q which would be 2312 from there there is many ways to handle the code to do different things.

  • #4
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post
    so it would be a GET ..


    can you show me a simple example that works like that ?
    dynamic , multiple pages

  • #5
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    PHP Code:
    $page $_GET['q'];

    $page_array = array( 31232132123112331232);
    if(
    in_array($page$page_array)){
    include 
    $page'.php';
    }else{
    include 
    'index.php';

    http://www.php.net/include
    http://www.php.net/in_array
    Quick easy and simple....
    There are better ways of doing it and more secure ways.

  • #6
    Regular Coder
    Join Date
    Apr 2007
    Posts
    141
    Thanks
    3
    Thanked 1 Time in 1 Post
    so those number 3123, 2132, 1231, 1233, 1232 are actually pages / file in the folder?

    it is not dynamically generated ? but they are real pages? that mean we just modify the name of the actual file?

  • #7
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    The number could also be an ID from a MySQL database. There are numerous ways to assign numbers to pages. Contact the site owner and find out how he/she is going about it.


  •  

    Posting Permissions

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