Results 1 to 4 of 4

Thread: Erm...

  1. #1
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default Erm...

    Ok, well im editing my cons.php, and I get this:

    Parse error: syntax error, unexpected T_DNUMBER in /home/shake/public_html/Upload/Upload/cons.php on line 10

    I know what is wrong with it, but i dont get this:

    Ok, i save one line (line 10) as this:

    $ip = $_SERVER['REMOTE_ADDR']; // Gets the users IP address

    But when It saves, it turns to this:

    66.79.162.235 = $_SERVER['REMOTE_ADDR']; // Gets the users IP address

    Why..?

  2. #2
    Join Date
    Feb 2006
    Location
    /usr/local
    Posts
    2,809
    Tokens
    688

    Latest Awards:

    Default

    IF i am right it to do with a link at the end of a php links it needs to be \ not /

  3. #3
    Join Date
    Aug 2006
    Location
    United Kingdom
    Posts
    207
    Tokens
    0

    Default

    PHP Code:
    <?php
     
    // Fujitsu. Randomly Added This
    // HabboxForum.com

    $ip $_SERVER['REMOTE_ADDR'];
     
    // Extra, just echos the IP Address
     
    echo "$ip";
     
    ?>
    Last edited by Fujitsu; 09-10-2006 at 07:26 PM.
    PHP Code:
    [LEFT]<?[/LEFT]
    [
    LEFT]$name $_GET['name'];[/LEFT]
    [
    LEFT]echo "Hi, your name is $name";[/LEFT]
    [
    LEFT]?>[/LEFT]
    [LEFT][/LEFT]

  4. #4
    Join Date
    Oct 2006
    Location
    Doncaster, UK
    Posts
    1,458
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by 1alex115 View Post
    IF i am right it to do with a link at the end of a php links it needs to be \ not /
    Infraction me for this if you want - i'm only saying my piece.

    [OFFTOPIC] Wth, are you stupid? How is it that? Come back when you have learnt PHP? [/OFFTOPIC]

    [ONTOPIC] Sorry i'm not sure [/ONTOPIC]
    REMOVED

    Edited by jesus (Forum Super Moderator): Please do not have images in your signature which are over the size limit for your usergroup.

Posting Permissions

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