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 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: .PHP

  1. #1
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Cool .PHP

    Okay.
    To show a the persons IP adress you use this code...
    <? echo "IP: $REMOTE_ADDR"; ?>
    But I would like it to come out as Veranda + Bold.
    How do I Do what with out damaging the script?

  2. #2
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    <html>

    <head>
    </head>

    <body>

    <font size="1" face="Verdana">

    <? echo "IP: $REMOTE_ADDR"; ?></font>

    </body>

    </html>

    there you go
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

  3. #3
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    thats one of the plus's of php you can just jamm it in with regular html

    athogh your script for the ip is wrong
    PHP Code:
    <?php echo ($_SERVER['REMOTE_ADDR']);?>
    would be what you want. Unless you are asigning that to the varible $REMOTE_ADDR already

    aka
    PHP Code:
    $REMOTE_ADDR $_SERVER['REMOTE_ADDR']; 
    ps. For blold as well

    HTML Code:
    <b><font size="1" face="Verdana"><? echo "IP: $REMOTE_ADDR"; ?></font></b>
    or
    HTML Code:
    <b><font size="1" face="Verdana"><?php echo ($_SERVER['REMOTE_ADDR']);?></font></b>
    Last edited by Mentor; 21-03-2005 at 09:15 PM.

  4. #4
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Okay. So for there browser to show its...
    <html>

    <head>
    </head>

    <body>

    <font size="1" face="Verdana">

    <?php echo $_SERVER['HTTP_USER_AGENT']; ?></font>

    </body>

    </html>

  5. #5
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    Quote Originally Posted by Luckyrare™
    Okay. So for there browser to show its...
    if its a php page. the php will have be phased to show whoevers veiwing the pages ip adress

    so for exsmaple it may look like

    <html>

    <head>
    </head>

    <body>

    <font size="1" face="Verdana">00.00.000.00 </font>

    </body>

    </html>


    but what you said is what you may wnat to put on your actal page in the programing veiw.

  6. #6
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Iam going to put the script in a iframe. That should work?

  7. #7
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    yea. ifraim will make no differnce, ifraims are loaded in the same way, exwpet there displayed inside anotehr page

  8. #8
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    Yeah
    Do you no how to password protect a page for viewing?

  9. #9
    Join Date
    Aug 2004
    Location
    UK
    Posts
    11,283
    Tokens
    2,031

    Latest Awards:

    Default

    can be done simply and complex. with php the main ways would itehr be using sessions, or easyer cookies. then creat a falt file database of uses. and a loggin page.

    if you have cpanle you can also secure a floder via that which is helpful.

    id be happy to help more, but i g2g.

  10. #10
    Join Date
    Jul 2004
    Location
    Bournemouth. UK
    Posts
    3,638
    Tokens
    0

    Latest Awards:

    Default

    make sure u name the page

    pagename.php or it wont work make sure it has .php on the end instead of .htm on .html etc etc
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have text in your signature which is over size 4.

Page 1 of 2 12 LastLast

Posting Permissions

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