PHP WebSocket2 Library
PHP5 Library for browsing web
WebRequestHelpers Class Reference

Some helper functions for web requests. More...

Static Public Member Functions

static isIpV4Address ($addr)
 Checks if string is a valid IPv4 address. More...
 
static resolveHostname ($hostname)
 Tries to resolve hostname. If IPv4 address is supplied, just returns it. More...
 

Detailed Description

Some helper functions for web requests.

Member Function Documentation

static isIpV4Address (   $addr)
static

Checks if string is a valid IPv4 address.

Parameters
string$addrTarget string
Return values
boolTrue if string is a valid IPv4 address
static resolveHostname (   $hostname)
static

Tries to resolve hostname. If IPv4 address is supplied, just returns it.

Parameters
string$hostnameTarget hostname or IPv4 address
Exceptions
WebRequestExceptionif any error occured when resolving hostname
Return values
stringIPv4 address

The documentation for this class was generated from the following file: