Page 1 of 1

php problem

Posted: Sun Aug 24, 2003 8:25 am
by auron
Does anyone know how to solve this problem with php?
I was trying to put someones IP in a variable but has to many dots in it, and php did not understand it so it kept saying bad T_DNUMBER, is there a another way to do this :?:

Posted: Sun Aug 24, 2003 8:45 am
by AVATAr
the IP is a string, so you have to put the ip in a string variable..
just:

$ip = ''; //initialize
$ip = '192.168.10.10';

and thats it

show your code

Posted: Sun Aug 24, 2003 1:26 pm
by auron
Thanks