Re: php_hostconnect: connect failed
| From: | Fred | Date: | Wed, 13 Feb 2002 04:51:15 +0000 |
| Subject: | Re: php_hostconnect: connect failed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-84535@lists.php.net to get a copy of this message | ||
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 <fred.nospam.please@querymagic.com> wrote in message
news:20020213044038.5065.qmail@pb1.pair.com...
> 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
>
>