This error has been bugging me for just short of a month! Originally I discovered it in a script for a free hosting manager (I am trying to build a free host). I isolated the exact code that is attempting to access the WHM below:Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/ismywebs/public_html/access.php on line 4
Warning: file(http://...@ismywebsite.com:2086): failed to open stream: Success in /home/ismywebs/public_html/access.php on line 4
It doesn't work. Yet when I go to http://userCode:<?php $file = file("http://user:pass@@ismywebsite.com:2086"); print_r($file); ?>ass@ismywebsite.com:2086 myself I can access it fine. To fully test that file() is working on the server -with URLs - I created:
Try it at http://www.ismywebsite.com/access.phpCode:<?php $file = file("http://www.ismywebsite.com/"); print_r($file); $file = file("http://user:pass@ismywebsite.com:2086"); print_r($file); ?>
The contents of my site display perfectly but the WHM is still inaccessible.
Please help me. This is the biggest roadblock I have ever faced in the development of my free host dream and please don't let it fail. Thanks a lot for your time and help.



LinkBack URL
About LinkBacks
ass@ismywebsite.com:2086
Reply With Quote









