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 5 of 5

Thread: PHP Include

  1. #1
    Join Date
    Oct 2004
    Location
    Uk
    Posts
    53
    Tokens
    0

    Question PHP Include

    Hey, I need help including a php file my website page to display a text counter number which has been created in php.

    I enter in the following code for the include;

    <?php include"http://novaone.co.uk/tools/counter/index.php"; ?>
    I am entering this php code into a div tag;
    <div id="footer"> <?php include"http://novaone.co.uk/tools/counter/index.php"; ?> </div>
    Do you think entering it into the dic tag would make it fail?

  2. #2
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    No.

    Longer

  3. #3
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    Is the file on the same server as this script?

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

    Default

    Direct includes are never a good idea...

    Say the file you're trying to include the counter file in is at http://novaone.co.uk, try this:

    PHP Code:
    <?php include('./tools/counter/index.php'); ?>

  5. #5
    Join Date
    Oct 2004
    Location
    Uk
    Posts
    53
    Tokens
    0

    Default

    Issue resolved

Posting Permissions

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