Problem with gethostbyname() php4 freebsd

gibass

Verified User
Joined
Feb 6, 2006
Messages
8
Hello,
We are using php4 4.4.7 with freebsd and as I see when I run simple script:

<?php
$ip = gethostbyname('example.com');
echo $ip;
?>

from apache it does not resove example.com to an IP address. But when You try to run the same script like php script.php it works perfectly.
Any idea why running script from apache does not resolve domain corectly ?
 
I have the exact same problem on FreeBSD and am eager for a fix. Any leads?
 
Back
Top