After further testing, it appears that the function works as expected if I use the IP address rather than the hostname. Perhaps this is an Apache problem, rather than a PHP problem, but I cannot see how. The ServerName is correct in apache and apache responds correctly with redirects etc.
Any ideas? Fred Fred <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I had been developing a script which needs to include the output of a perl > cgi script. > > Using the rpm versions of Apache 1.3.19 and PHP 4.0.6 I had no problem using > the following syntax: > > $url = http://my.host.com/search.cgi? . $QUERY_STRING; > include ($url); > > Notice that I used the fully qualified url so that Apache would parse the > cgi and php would include the result of the cgi script rather than the text > of the script. > > > I recently compile Apache 1.3.23 and PHP 4.1.1 from source and now the > script generates this error: > php_hostconnect: connect failed > when I attempt to include the file. I have allow_url_fopen = On in the > php.ini, so I would expect the script to continue to function as it did > previously. Unfortunately, it does not. > > I have been unable to find a solution in the list archives or elsewhere and > I hope someone here knows how I can fix this problem. > > Note: Other than compiling from source (rather than installing from rpm) > and using the most recent versions, the only differences between my old > installation and my new installation is that apache no longer includes ssl > support and php is now compiled with--mnogosearch. > > Any assistance is appreciated. > > Fred > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php