tags:

views:

45

answers:

3

i am trying to use checkdnsrr() function with php 2.9.2, but it shows an error as "Call to undefined function checkdnsrr()".. is it because this function is not compatible with the version i am using? Can i have an alias of this function so that it works with my version?

A: 

The following indicates that the checkdnserr function is only compatible with PHP 4 or 5.

This is taken straight from the manual

checkdnsrr

(PHP 4, PHP 5)

checkdnsrr — Check DNS records corresponding to a given Internet host name or IP address

Peter Lindqvist
The manual only indicates which PHP versions are supported; they are not indicative of whether the functions were added in PHP 4.
Håvard S
A: 

checkdnsrr work in version 4 and 5. How to even find an manual for Php version 2.9.2 I am not sure!

code-zoop
A: 

The function existed in PHP 3, but I cannot confirm whether it existed in PHP 2 or not. Anyhow, PHP 2 and 3 are no longer supported versions. You should upgrade to PHP 4 or later.

Håvard S