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!


Page 15 of 17 FirstFirst ... 511121314151617 LastLast
Results 141 to 150 of 164
  1. #141
    Join Date
    May 2008
    Posts
    1,160
    Tokens
    11

    Latest Awards:

    Default

    <?php include ("content.txt") ?>
    Well there's the error

    <?php includes ("content.txt") ?>

    not

    <?php include ("content.txt") ?>

    I do believe
    Previously a Habbo fanatic, web designer/developer, fansite owner, & trusted member of the community.

  2. #142
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    I've never used includes...
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  3. #143
    Join Date
    May 2008
    Posts
    1,160
    Tokens
    11

    Latest Awards:

    Default

    Quote Originally Posted by ***** View Post
    I've never used includes...
    Then I must be mistaken
    IDK PHP, was just a thought
    Previously a Habbo fanatic, web designer/developer, fansite owner, & trusted member of the community.

  4. #144
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Quote Originally Posted by Cushioned View Post
    Well there's the error

    <?php includes ("content.txt") ?>

    not

    <?php include ("content.txt") ?>

    I do believe
    Nope it's "Include" as it currently is in the code.

    You sure you have a file named "content.txt" in the same correctly directory?

  5. #145
    Join Date
    May 2008
    Posts
    1,160
    Tokens
    11

    Latest Awards:

    Default

    Quote Originally Posted by --ss-- View Post
    Nope it's "Include" as it currently is in the code.

    You sure you have a file named "content.txt" in the same correctly directory?
    Oh haha. My mistake
    Noob to PHP
    Previously a Habbo fanatic, web designer/developer, fansite owner, & trusted member of the community.

  6. #146
    Join Date
    Jul 2008
    Posts
    535
    Tokens
    75

    Default

    Try that.

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <title>Box</title> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
    <style type="text/css"> 
    <!-- 
    body { 
      text-align: center; 
      background-color: #ffffff; 
      margin-top: 5px; 
    } 
    #container { 
      width: 274px; 
      margin: auto; 
      font-family: Verdana; 
      font-size: 10px; 
      font-weight: normal; 
      color: #000000; 
    } 
    #top { 
      background: url(header.png); 
      height: 21px; 
    } 
    #mid { 
      background: url(background.png); 
    } 
    #bot { 
      background: url(footer.png); 
      height: 26px; 
    } 
    --> 
    </style> 
    </head> 
    <body> 
    <div id="container"> 
      <div id="top"></div> 
      <div id="mid"><?php $midcontent = file_get_contents('content.txt'); echo $midcontent; ?></div> 
      <div id="bot"></div> 
    </div> 
    </body> 
    </html>

  7. #147
    Join Date
    Nov 2006
    Location
    Coventry
    Posts
    479
    Tokens
    1,292

    Default

    Very nice indeed, I'll be using this!

    - Lee
    Student Pilot EGBW | Cessna 152 G-BHPY G-BTVW
    Passed Air Law exam April 25th

  8. #148

    Default

    Thanks for this, it will really help as I am just a learner at coding
    --
    For those complaining, he has already used to code so it does work.

  9. #149
    Join Date
    Jun 2009
    Location
    Newcastle Upon Tyne, UK
    Posts
    2,652
    Tokens
    1,389
    Habbo
    lRhyss

    Latest Awards:

    Default

    Lmao at happend to meh

    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <title>Box</title> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
    <style type="text/css"> 
    <!-- 
    body { 
      text-align: center; 
      background-color: #ffffff; 
      margin-top: 5px; 

    #container { 
      width: 390px; 
      margin: auto; 
      font-family: Verdana; 
      font-size: 10px; 
      font-weight: normal; 
      color: #000000; 

    #top { 
      background: url(top.gif); 
      height: 11px; 

    #mid { 
      background: url(mid.gif); 

    #bot { 
      background: url(bot.gif); 
      height: 10px; 

    --> 
    </style> 
    </head> 
    <body> 
    <div id="container"> 
      <div id="top"></div> 
      <div id="mid"><?php include ("content.txt")?></div> 
      <div id="bot"></div> 
    </div> 
    </body> 
    </html> 
    http://www.shanes.sawhosting.com/tut
    Ive done that but when it does it the images e.g. top mid bot dont show there called the same as they are on the coding. why :S

  10. #150
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Quote Originally Posted by Gerb View Post
    Lmao at happend to meh

    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml"> 
    <head> 
    <title>Box</title> 
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
    <style type="text/css"> 
    <!-- 
    body { 
      text-align: center; 
      background-color: #ffffff; 
      margin-top: 5px; 

    #container { 
      width: 390px; 
      margin: auto; 
      font-family: Verdana; 
      font-size: 10px; 
      font-weight: normal; 
      color: #000000; 

    #top { 
      background: url(top.gif); 
      height: 11px; 

    #mid { 
      background: url(mid.gif); 

    #bot { 
      background: url(bot.gif); 
      height: 10px; 

    --> 
    </style> 
    </head> 
    <body> 
    <div id="container"> 
      <div id="top"></div> 
      <div id="mid"><?php include ("content.txt")?></div> 
      <div id="bot"></div> 
    </div> 
    </body> 
    </html> 
    http://www.shanes.sawhosting.com/tut
    Ive done that but when it does it the images e.g. top mid bot dont show there called the same as they are on the coding. why :S
    The images will have to be in the same folder as the .php document as the above

Posting Permissions

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