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 10 of 10
  1. #1
    Join Date
    Apr 2009
    Posts
    4,289
    Tokens
    2,022
    Habbo
    iLogan

    Latest Awards:

    Default PHP Errors (+REP)

    Hiya Guys,

    I'm having some technical problems :|.

    Does anyone know why this is happening?

    My code is:

    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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    <?php
    include("remel.php");
    echo "Hello World!";
    ?>
    
    </body>
    </html>
    It then outputs the include but also an error:

    ex-hxl manager
    ex-event organizer
    ex-gfx designer
    ex-competition staff
    ex-content staff
    OFWGKΔ

  2. #2
    Join Date
    Jan 2010
    Location
    United Kingdom
    Posts
    846
    Tokens
    1,766
    Habbo
    triston220

    Latest Awards:

    Default

    What's the error? What's the contents of remel.php?


    Quote Originally Posted by Jaaaack! View Post
    See, however much I want this, my girlfriend uses my PC too much, and I would be killed.





  3. #3
    Join Date
    Apr 2009
    Posts
    4,289
    Tokens
    2,022
    Habbo
    iLogan

    Latest Awards:

    Default

    It's just a normal php file, it outputs the file fine but I still get that error :S
    ex-hxl manager
    ex-event organizer
    ex-gfx designer
    ex-competition staff
    ex-content staff
    OFWGKΔ

  4. #4
    Join Date
    Jan 2010
    Location
    United Kingdom
    Posts
    846
    Tokens
    1,766
    Habbo
    triston220

    Latest Awards:

    Default

    Quote Originally Posted by RemelKiid View Post
    It's just a normal php file, it outputs the file fine but I still get that error :S
    What's the error?


    Quote Originally Posted by Jaaaack! View Post
    See, however much I want this, my girlfriend uses my PC too much, and I would be killed.





  5. #5
    Join Date
    Apr 2009
    Posts
    4,289
    Tokens
    2,022
    Habbo
    iLogan

    Latest Awards:

    Default

    ex-hxl manager
    ex-event organizer
    ex-gfx designer
    ex-competition staff
    ex-content staff
    OFWGKΔ

  6. #6
    Join Date
    Jan 2010
    Location
    United Kingdom
    Posts
    846
    Tokens
    1,766
    Habbo
    triston220

    Latest Awards:

    Default

    Quote Originally Posted by RemelKiid View Post
    There's an issue in remel.php. Can you post the source please?


    Quote Originally Posted by Jaaaack! View Post
    See, however much I want this, my girlfriend uses my PC too much, and I would be killed.





  7. #7
    Join Date
    Apr 2009
    Posts
    4,289
    Tokens
    2,022
    Habbo
    iLogan

    Latest Awards:

    Default

    remel.php:

    Code:
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Welcome Home.</title>
    <style type="text/css">
    body,td,th {
        font-family: Tahoma, Geneva, sans-serif;
        font-size: 36px;
    }
    
    body {
        background-color: #FF7400;
        background-image: url();
        background-repeat: no-repeat;
    }
    </style>
    </head>
    
    <body>
    <center>
    <?php
    
      $day   = 06;     
      $month = 06;      
      $year  = 2011;   
      $hour  = 00;     
      $event = "My birthday"; 
    
      $calculation = ((mktime ($hour,0,0,$month,$day,$year) - time(void))/3600);
      $hours = (int)$calculation;
      $days  = (int)($hours/24);
    ?>
    
      <p>Hi, welcome to my site, I haven't really got the time to design a full website, you get me <span class="ita">brah</span>? </p>
     <br>
    
     It's my bithday in <?php echo $days?> days, woo.
        <br>
         <p class="tiny">What you gonna get me?  LOL</p>
    
         <center><font color="#FFFFFF"><font size="2" face="Verdana">
    <b>Things I like:</b> Rihanna, Starbucks (Mocha Frappuccino), Amusement Parks, Going to the Mall, Mtn Dew, Designing Websites, Root Beer, Coke Floats, Hot Dogs, My Pets, McDonalds, Kicks, Radio Presenting, Money, Internet, Skins, Business, Slushies, Big Brother, Channel 4, Hannah (from TP), Tweeting, Contact Lenses, Lucky Charms, Fluff, Wonka Nerds, Mello Yello (kinda), Family Guy, Come Fly With Me, MPD, Sour Patches, vBulletin, Pop Tarts, Kanye West, Nero, Nicki Manaj, Pancakes, Waffles & Coding.  </font>
    </center>
    </body>
    </html>
    ex-hxl manager
    ex-event organizer
    ex-gfx designer
    ex-competition staff
    ex-content staff
    OFWGKΔ

  8. #8
    Join Date
    Jan 2010
    Location
    United Kingdom
    Posts
    846
    Tokens
    1,766
    Habbo
    triston220

    Latest Awards:

    Default

    Try
    PHP Code:
    <!DOCTYPE HTML>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Welcome Home.</title>
    <style type="text/css">
    body,td,th {
        font-family: Tahoma, Geneva, sans-serif;
        font-size: 36px;
    }

    body {
        background-color: #FF7400;
        background-image: url();
        background-repeat: no-repeat;
    }
    </style>
    </head>

    <body>
    <center>
    <?php

      $day   
    06;     
      
    $month 06;      
      
    $year  2011;   
      
    $hour  00;     
      
    $event "My birthday"

      
    $calculation = ((mktime ($hour,0,0,$month,$day,$year) - time())/3600);
      
    $hours = (int)$calculation;
      
    $days  = (int)($hours/24);
    ?>

      <p>Hi, welcome to my site, I haven't really got the time to design a full website, you get me <span class="ita">brah</span>? </p>
     <br>

     It's my bithday in <?php echo $days?> days, woo.
        <br>
         <p class="tiny">What you gonna get me?  LOL</p>

         <center><font color="#FFFFFF"><font size="2" face="Verdana">
    <b>Things I like:</b> Rihanna, Starbucks (Mocha Frappuccino), Amusement Parks, Going to the Mall, Mtn Dew, Designing Websites, Root Beer, Coke Floats, Hot Dogs, My Pets, McDonalds, Kicks, Radio Presenting, Money, Internet, Skins, Business, Slushies, Big Brother, Channel 4, Hannah (from TP), Tweeting, Contact Lenses, Lucky Charms, Fluff, Wonka Nerds, Mello Yello (kinda), Family Guy, Come Fly With Me, MPD, Sour Patches, vBulletin, Pop Tarts, Kanye West, Nero, Nicki Manaj, Pancakes, Waffles & Coding.  </font>
    </center>
    </body>
    </html>


    Quote Originally Posted by Jaaaack! View Post
    See, however much I want this, my girlfriend uses my PC too much, and I would be killed.





  9. #9
    Join Date
    Apr 2009
    Posts
    4,289
    Tokens
    2,022
    Habbo
    iLogan

    Latest Awards:

    Default

    Thanks

    What did you change?

    +REP
    ex-hxl manager
    ex-event organizer
    ex-gfx designer
    ex-competition staff
    ex-content staff
    OFWGKΔ

  10. #10
    Join Date
    Jan 2010
    Location
    United Kingdom
    Posts
    846
    Tokens
    1,766
    Habbo
    triston220

    Latest Awards:

    Default

    Quote Originally Posted by RemelKiid View Post
    Thanks

    What did you change?

    +REP
    No problem. I just removed "null" from the time() function.


    Quote Originally Posted by Jaaaack! View Post
    See, however much I want this, my girlfriend uses my PC too much, and I would be killed.





Posting Permissions

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