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 ?
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 ?