Reply to Test for PTR Record

Your name:

Reply:


Posted by Luke - eat.lemons@gmail.com on 08/22/06 12:22

Hi all,

I need to test a IP for a PTR record and display the outcome.

The problem i have is i need to test with 2 vars.

$host = the ip
$hostmask = the hostmask

How do i use 2 vars in one function so i can call it like:

test_ptr($host, $hostmask)

Ive tested this but cant seem to get it to work.

code below. Thanks in advance

function test_ptr($host) {
if (strlen(gethostbyaddr($host))==
strlen(gethostbyname("$hostmask"))) {
$emsg = "    !!Couldent find PTR Record!!";
}
}

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация