Johnny
asked on
anyone got a clue how to use net_dns pear?? how do you do it?
im trying to use two different pear net_dns classes and i am stumped on how to use either one i get massive errors with either one
http://www.ypass.net/software/php/Net_DNS/
and
http://pear.php.net/package/Net_DNS/
i have pear installed but im getting errors
ie:
using the second one NET_dns form pear itself i get
An Error Occured!
Error Number: 2048
Error Description: Assigning the return value of new by reference is deprecated
Error In File: C:\home\www\dragon-softwar e.info\Net _DNS\NET\D NS\RR.php
Error On Line: 95
An Error Occured!
Error Number: 2048
Error Description: Assigning the return value of new by reference is deprecated
Error In File: C:\home\www\dragon-softwar e.info\Net _DNS\NET\D NS\RR.php
Error On Line: 113
An Error Occured!
Error Number: 2048
Error Description: Assigning the return value of new by reference is deprecated
Error In File: C:\home\www\dragon-softwar e.info\Net _DNS\NET\D NS\RR.php
Error On Line: 206
An Error Occured!
Error Number: 2048
Error Description: Non-static method Net_DNS_Resolver::nextid() should not be called statically, assuming $this from incompatible context
Error In File: C:\home\www\dragon-softwar e.info\Net _DNS\NET\D NS\Header. php
Error On Line: 169
An Error Occured!
Error Number: 2048
Error Description: Non-static method Net_DNS::opcodesbyval() should not be called statically, assuming $this from incompatible context
Error In File: C:\home\www\dragon-softwar e.info\Net _DNS\NET\D NS\Header. php
Error On Line: 183
there allot more errors but that the first few
then using the other one i get
Fatal error: Cannot re-assign $this in C:\home\www\dragon-softwar e.info\Net _DNS\NET\D NS\RR.php on line 60
the script im using is
<?php
// version:
$GLOBALS['DEBUG'];
define('DEBUG', True);
//define('DEBUG', False);
if (DEBUG) {
echo "DEBUG is turned on<br>";
}
//include("check_logon.php ");
include(".\include\functio ns.php");
//include(".\include\mysql _connectio n.php");
//include(".\script_config .php");
if (DEBUG) {
set_error_handler("my_erro r_handler" );
echo "error_handler enabled<BR>";
}
##------------------------ ---------- ---------- ---##/*
echo "HELLO<BR>";
//require_once("PEAR.php") ;
require_once("NET/DNS.php" );
$res = new Net_DNS_Resolver();
$res->debug = 0;
$answer = $res->search("66.57.24.174 ");
echo "<BR><HR><BR>";
print_r($answer);
?>
any ideas on how to fix either one???? im lost
thank you in advance for any help or code you may provide
im not locked in using any one of theses im looking on how to get dns info
http://www.ypass.net/software/php/Net_DNS/
and
http://pear.php.net/package/Net_DNS/
i have pear installed but im getting errors
ie:
using the second one NET_dns form pear itself i get
An Error Occured!
Error Number: 2048
Error Description: Assigning the return value of new by reference is deprecated
Error In File: C:\home\www\dragon-softwar
Error On Line: 95
An Error Occured!
Error Number: 2048
Error Description: Assigning the return value of new by reference is deprecated
Error In File: C:\home\www\dragon-softwar
Error On Line: 113
An Error Occured!
Error Number: 2048
Error Description: Assigning the return value of new by reference is deprecated
Error In File: C:\home\www\dragon-softwar
Error On Line: 206
An Error Occured!
Error Number: 2048
Error Description: Non-static method Net_DNS_Resolver::nextid()
Error In File: C:\home\www\dragon-softwar
Error On Line: 169
An Error Occured!
Error Number: 2048
Error Description: Non-static method Net_DNS::opcodesbyval() should not be called statically, assuming $this from incompatible context
Error In File: C:\home\www\dragon-softwar
Error On Line: 183
there allot more errors but that the first few
then using the other one i get
Fatal error: Cannot re-assign $this in C:\home\www\dragon-softwar
the script im using is
<?php
// version:
$GLOBALS['DEBUG'];
define('DEBUG', True);
//define('DEBUG', False);
if (DEBUG) {
echo "DEBUG is turned on<br>";
}
//include("check_logon.php
include(".\include\functio
//include(".\include\mysql
//include(".\script_config
if (DEBUG) {
set_error_handler("my_erro
echo "error_handler enabled<BR>";
}
##------------------------
echo "HELLO<BR>";
//require_once("PEAR.php")
require_once("NET/DNS.php"
$res = new Net_DNS_Resolver();
$res->debug = 0;
$answer = $res->search("66.57.24.174
echo "<BR><HR><BR>";
print_r($answer);
?>
any ideas on how to fix either one???? im lost
thank you in advance for any help or code you may provide
im not locked in using any one of theses im looking on how to get dns info
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.