PDA

View Full Version : Erm...



:Blob
08-10-2006, 12:52 PM
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..?

Swinkid
09-10-2006, 07:10 PM
IF i am right it to do with a link at the end of a php links it needs to be \ not /

Fujitsu
09-10-2006, 07:24 PM
<?php

// Fujitsu. Randomly Added This
// HabboxForum.com

$ip = $_SERVER['REMOTE_ADDR'];

// Extra, just echos the IP Address

echo "$ip";

?>

adm
09-10-2006, 07:30 PM
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.

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

Sorry i'm not sure

Want to hide these adverts? Register an account for free!