| px | top | add code | search | signup | login | help |
<?php
/********************
Windows DNS functions
By Hamish Milne
There are a number of PHP functions that are not compatible with windows.
In this document, I have created several replacements for these functions without using any seperate binaries or classes:
int checkdnsrr ( string $host [, string $type ] )
bool getmxrr ( string $hostname , array &$mxhosts [, array &$weight ] )
array dns_get_record ( string $hostname [, int $type ]) *
This also includes aliases.
Apart from dns_get_record, they are exactly the same as the linux versions.
Requires:
nslookup - ie. Windows - with access to 4.2.2.3
PHP >= 4.0.3
shell_exec() enabled - ie. safe mode disabled.
The files in the includes below
See the individual files for more specific information.
********************/
include('checkdnsrr.php');
include('getmxrr.php');
include('dns_get_record.php');
?>
Comments or questions?
PX is running PHP 5.2.11
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.