php problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
auron
Forum Newbie
Posts: 2
Joined: Sun Aug 24, 2003 8:25 am

php problem

Post 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 :?:
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post 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
auron
Forum Newbie
Posts: 2
Joined: Sun Aug 24, 2003 8:25 am

Post by auron »

Thanks
Post Reply