-
10-05-2009 03:38 PM
Permalink: #1
Senior Member
Validating IP Addresses Using PHP
PHP 5.2+ offer an excellent function for validating IP Addresses: filter_var().
The filter_var() function offers several flags: FILTER_VALIDATE_IP, FILTER_FLAG_IPV4, FILTER_FLAG_IPV6, FILTER_FLAG_NO_PRIV_RANGE and FILTER_FLAG_NO_RES_RANGE, used to filter or validate IP addresses based on whether the address is IPv4, IPv6 or within a reserved or private network range.
View Complete Article
Similar Threads
-
By pagetta in forum Web Programming Discussion Forum
Replies: 3
Last Post: 08-01-2005, 09:04 AM
-
By pagetta in forum Graphics & Design Discussion Forum
Replies: 11
Last Post: 03-29-2005, 05:19 PM
-
By shimshon in forum Graphics & Design Discussion Forum
Replies: 36
Last Post: 10-18-2004, 10:48 AM
-
By sijpie in forum Web Programming Discussion Forum
Replies: 2
Last Post: 06-22-2004, 03:59 AM
-
By joliettech in forum Web Programming Discussion Forum
Replies: 3
Last Post: 02-09-2004, 09:51 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Subscribe to the Newsletter FREE!
WebProWorld is an
iEntry, Inc. ® site.
© 2010 All Rights Reserved
Privacy,
Legal.
2549 Richmond Rd. Lexington KY, 40509