This error occurs:
Warning: include() [function.include]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/ldbhome.biz/cooking/crock/index.php on line 84
Warning: include(http://xpm3ggw/ldbhome.biz/cooking/mnu.php) [function.include]: failed to open stream: No such file or directory in /var/www/ldbhome.biz/cooking/crock/index.php on line 84
However, if I copy the path in the error message script and paste it into the browser, it displays.
The code is
<?php echo "$hosta/mnu.php<br />";include "$hosta/mnu.php";?>
$hosta is a var that is set according to whether I'm on the dev box or on the hosting server. The echo statement was inserted to test that it is showing the right info - it is.
This works on the hosting server, just not on my dev box. It worked when I was using Ubuntu 7.10. I recently upgraded to Ubuntu 8.04.
'Twould seem to be a config issue, but I've no idea where to look. Don't know it's PHP config, Apache2 config, or Ubuntu config. I've found this error referenced in several messages, but none of the fixes - mostly for fopen() or fsock() - have helped.
I enabled the fopen wrappers in php.ini, but that has not resolved the issue.
I'm at a total loss here, would appreciate any assistance.
Make a good day ...
... barn