Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2006
    Location
    United States
    Posts
    575
    Tokens
    0

    Default Hm... So..? [+REP]

    Okay so I use a lot of iframes on my site, and i just wanted to know if that bad? It doesn't hurt anything.. and I really do prefer it.

    I guess i'm just asking what are the downfalls of using it?


  2. #2
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Im not sure i use to use it now i use php $_GET to get pages


  3. #3
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    It's very Web 1.0, in answer to your question. Most people are using PHP to control their site navigation (ie. a user will go to index.php?page=contactus), and PHP will include contactus.php.

  4. #4
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    or they use .htaccess to make it from

    index.php?page=watever

    to

    watever.php
    Chippiewill.


  5. #5
    Join Date
    Dec 2007
    Location
    Ontario, Canada
    Posts
    17
    Tokens
    0

    Default

    Quote Originally Posted by Beau View Post
    It's very Web 1.0, in answer to your question. Most people are using PHP to control their site navigation (ie. a user will go to index.php?page=contactus), and PHP will include contactus.php.
    Could someone explain his method?


  6. #6
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Yes use a script like this:

    PHP Code:
    <?php
          $url 
    $_GET["view"];
          if(isset(
    $_GET["view"]) && $_GET["view"] != "")
          {
           if(
    file_exists("$url.php"))
           {
            include(
    "$url.php");
           }
           else
           {
            include(
    "404.php");
              }
          }
          else
          {
           include(
    "home.php");
          }
         
    ?>
    Then in the link you need to put ?view=home this will go to home.php

    Dan


  7. #7
    Join Date
    Apr 2006
    Location
    West Midlands
    Posts
    3,384
    Tokens
    0

    Latest Awards:

    Default

    In my opinion, stick with what you know. Don't go using php scripts that you don't understand as when you get a problem you're not going to know whats wrong and how to fix it.

    If you like iframes then use iframes. They're not brilliant and are terrible for search engine optimization but if they're working for you then continue and then move on when you have the knowledge .


    Xbox Live: Jholder112233
    PS3 Online Tag: Josh-H

    Last.fm | Digg | Xbox.com

Posting Permissions

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