Show Invalid IP

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
hamedx
Forum Newbie
Posts: 8
Joined: Wed Aug 20, 2008 9:38 am

Show Invalid IP

Post by hamedx »

hi guys , sorry for interupt :roll: ..

is there a way to show Invalid IP with PHP?
User avatar
jayshields
DevNet Resident
Posts: 1912
Joined: Mon Aug 22, 2005 12:11 pm
Location: Leeds/Manchester, England

Re: Show Invalid IP

Post by jayshields »

You mean you want a regular expression to check if a given IP is valid or not? Just search Google for "IP address regular expression".
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: Show Invalid IP

Post by mikemike »

hamedx
Forum Newbie
Posts: 8
Joined: Wed Aug 20, 2008 9:38 am

Re: Show Invalid IP

Post by hamedx »

thanks for reply ,this is what i want >> i am adsl user and i have an invalid ip "192.168.1.1" for example ...
is there a way to show this ip address from web ?
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: Show Invalid IP

Post by Mark Baker »

Executing an OS nslookup ?? or pinging the address ??
User avatar
mikemike
Forum Contributor
Posts: 355
Joined: Sun May 24, 2009 5:37 pm
Location: Chester, UK

Re: Show Invalid IP

Post by mikemike »

192.168.1.1 is not an invalid IP...
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: Show Invalid IP

Post by omniuni »

I think what you're looking for is the LOCAL IP. That is to say, the IP that you are assigned on your local network. I brief Google does not turn anything up. If you find what you are looking for, please, let us know!
Post Reply