SimplePie: PHP-based RSS and Atom feed handling
 
  • Overview
  • Demo
  • Blog
  • Download
  • Documentation
  • API Docs
  • Support
  • Issue Tracker
  • FAQ
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • SimplePie
    • API
    • Caching
    • HTTP
    • Parsing

Classes

  • SimplePie_Content_Type_Sniffer
  • SimplePie_File
  • SimplePie_gzdecode
  • SimplePie_HTTP_Parser
  • SimplePie_IRI
  • SimplePie_Net_IPv6

Class SimplePie_Net_IPv6

Class to validate and to work with IPv6 addresses.

Package: SimplePie\HTTP
Copyright: 2003-2005 The PHP Group
License: http://www.opensource.org/licenses/bsd-license.php
Author: Alexander Merz <alexander.merz@web.de>
Author: elfrink at introweb dot nl
Author: Josh Peck <jmp at joshpeck dot org>
Author: Geoffrey Sneddon <geoffers@gmail.com>
Link: http://pear.php.net/package/Net_IPv6
Located at SimplePie/Net/IPv6.php
Methods summary
public static string
# uncompress( string $ip )

Uncompresses an IPv6 address

RFC 4291 allows you to compress concecutive zero pieces in an address to '::'. This method expects a valid IPv6 address and expands the '::' to the required number of zero pieces.

Example: FF01::101 -> FF01:0:0:0:0:0:0:101 ::1 -> 0:0:0:0:0:0:0:1

Parameters

$ip
string
An IPv6 address

Returns

string
The uncompressed IPv6 address

Copyright

2003-2005 The PHP Group

License

http://www.opensource.org/licenses/bsd-license.php

Author

Alexander Merz <alexander.merz@web.de>
elfrink at introweb dot nl
Josh Peck <jmp at joshpeck dot org>
public static string
# compress( string $ip )

Compresses an IPv6 address

RFC 4291 allows you to compress concecutive zero pieces in an address to '::'. This method expects a valid IPv6 address and compresses consecutive zero pieces to '::'.

Example: FF01:0:0:0:0:0:0:101 -> FF01::101 0:0:0:0:0:0:0:1 -> ::1

Parameters

$ip
string
An IPv6 address

Returns

string
The compressed IPv6 address

See

SimplePie_Net_IPv6::uncompress()
public static boolean
# check_ipv6( string $ip )

Checks an IPv6 address

Checks if the given IP is a valid IPv6 address

Parameters

$ip
string
An IPv6 address

Returns

boolean
true if $ip is a valid IPv6 address
public static boolean
# checkIPv6( string $ip )

Checks if the given IP is a valid IPv6 address

Deprecated

Use SimplePie_Net_IPv6::check_ipv6() instead

Parameters

$ip
string
An IPv6 address

Returns

boolean
true if $ip is a valid IPv6 address

See

SimplePie_Net_IPv6::check_ipv6()

CodeCoverageIgnore

Show some love! Wishlists for Geoffrey, Ryan P., and Ryan M.

SimplePie is © 2004–2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue and contributors. Licensed under the BSD License. Hosted thanks to Matt Mullenweg, API documentation generated by ApiGen 2.6.1. Variation on the Feed Icon by Wolfgang Bartelme.