I've got a big problem with a simple issue as I thought. I want to
read the index.html file from a known webserver. The script looks like:
Code: Select all
$baseurl="web.utanet.at";
//following two lines are for testing purposes
$host=gethostbyname($baseurl);
echo("host: ".$host."<br>");
//here I add the http
$url="http://".$baseurl."/grbicver/index.html";
$ret = join('',file($url));
echo($ret."<br>");accessing the file without "http://"
I get the errormessage "- No such file or directory in...."
Accessing the file with "http://" forces this messages:
Warning: php_network_getaddresses: gethostbyname failed in ...
Warning: file("http://web.utanet.at/index.htm") - No error in ...
Fatal error: Maximum execution time of 30 seconds exceeded in ...
My environment is NT4.0 with apache/php accessing via a PC with jana proxy server the web.
When I access a local webserver(also installed on the proxy PC) with the script above it works.
I've no idea what causes the problem. I 've already posted this problem
in a forum dedicated to the jana server without success.
Is anyone here who can figure out what the problem is (I mean not that one between chair and monitor) and/or can help me solving the problem?
With regards
Ralph
(mcleo)