[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/net/ -> dns.class.php (sommaire)

(pas de description)

Poids: 141 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 3 fois
Nécessite: 0 fichiers

Définit 1 class

Dns:: (4 méthodes):
  checkdnsrr()
  checkdnsrr_windows()
  getmxrr()
  getmxrr_windows()


Classe: Dns  - X-Ref

\ingroup Net

Implementation of an alternative version of the checkdnsrr and getmxrr functions which
are not available in the windows version of the php. The class detects wether we're
running windows or linux and then depending on the result, we will use the faster and native
version or the alternative one.
checkdnsrr( $host, $type = "MX" )   X-Ref
Static function that acts as a wrapper for the native checkdnsrr function. It first detects
wether we're running in Windows or not and then uses the native version or the alternative one.

For more information:          http://hk2.php.net/checkdnsrr

param: host The we would like to check.
param: type It defaults to MX, but could be one of A, MX, NS, SOA, PTR, CNAME, AAAA, or ANY.
return: Returns TRUE if any records are found; returns FALSE if no records were found or if an error occurred.

checkdnsrr_windows( $host, $type = "MX" )   X-Ref
Function shamelessly copied from a comment made by an anonymous poster, that implements
an alternative version of checkdnsrr for windows platforms (at least, it works for
windows nt, 2000 and xp) I will never work in windows 98 because a) I think it's stupid
to run this in a windows 98 machine and b) because windows 98 is outdated anyway.

Original function: http://hk2.php.net/checkdnsrr

This function should behave in exactly the same way as the native checkdnsrr.

param: host The we would like to check.
param: type It defaults to MX, but could be one of A, MX, NS, SOA, PTR, CNAME, AAAA, or ANY.
return: Returns TRUE if any records are found; returns FALSE if no records were found or if an error occurred.

getmxrr( $hostname, &$mxhosts )   X-Ref
Static function that detects wether we're running windows or not and then either uses the native version of
getmxrr or the alternative one. See getmxrr_windows below for more information.

param: hostname The host for which we want to get the mx records.
param: mxhosts The array we are going to fill with the mx records.
return: Returns either true or false.

getmxrr_windows( $hostname, &$mxhosts )   X-Ref
Another function shamelessly copied from the same place which implements an alternative version
of getmxrr.

See http://hk2.php.net/manual/en/function.getmxrr.php for more details.

param: hostname The host for which we want to get the mx records.
param: mxhosts The array we are going to fill with the mx records.
return: Returns either true or false.



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics