#19248 [Opn]: ftp_connect failed
| From: | venaas@php.net | Date: | Mon, 09 Sep 2002 16:53:49 +0000 |
| Subject: | #19248 [Opn]: ftp_connect failed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-18827@lists.php.net to get a copy of this message | ||
ID: 19248
Updated by: venaas@php.net
Reported By: a.desbois@regie-france.com
Status: Open
Bug Type: FTP related
Operating System: AIX 4.3
PHP Version: 4.2.0
New Comment:
Does it work when you use an IP address? In
main/php_config.h it probably says
#define HAVE_GETADDRINFO 1
If you uncomment this and do make, does it work then?
Some versions of the bind library have broken
getaddrinfo(), maybe you have one too?
Previous Comments:
------------------------------------------------------------------------
[2002-09-09 09:32:01] a.desbois@regie-france.com
ups, in fact the installation of PHP 4.3.0 makes a new bug ?
ftp_connect still don't work, and now, fsockopen don't work
COMPILATION LOG : http://demoweb.regie-france.com/make.stdout
PHPINFO : http://demoweb.regie-france.com/phpinfo.php
TEST HERE : http://demoweb.regie-france.com/test.php
------------------------------------------------------------------------
[2002-09-09 08:01:46] sniper@php.net
fsockopen() ? What happened to ftp_connect() ?
Please add the shortest possible script here which can be used to
reproduce this.
------------------------------------------------------------------------
[2002-09-09 07:53:20] a.desbois@regie-france.com
2002-09-09 14:12:19 - Alerte - fsockopen() [<a
href='http://www.php.net/function.fsockopen'>function.fsockopen</a>]:
php_hostconnect: connect failed in
/www/annabelle/www/include/fct/CWebdConnect.inc:34
2002-09-09 14:12:19 - Alerte - fsockopen() [<a
href='http://www.php.net/function.fsockopen'>function.fsockopen</a>]:
unable to connect to 10.100.1.249:3513 in
/www/annabelle/www/include/fct/CWebdConnect.inc:34
------------------------------------------------------------------------
[2002-09-05 15:06:30] kalowsky@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Now is your last chance to try an RC for 4.2.3 and tell us if this is
fixed or not. Please do try it so we can make 4.2.3 work best for
everyone.
------------------------------------------------------------------------
[2002-09-05 07:52:20] a.desbois@regie-france.com
http://demoweb.regie-france.com/phpinfo.php
FTP is working with command line but not with PHP
the http server have 2 ethernet cards : one on LAN and one on WAN
It returns 'php_hostconnect: connect failed' when I try
ftp_connect($ftp_server)
TEST HERE: http://demoweb.regie-france.com/ftptest.php
Is it fixed in PHP 4.2.2 ? Or if it's not a problem with PHP, have you
got an idea ?
thx for help :)
./configure --with-apache=/bases/apache_1.3.24/
--with-config-file-path=/usr/local/php --with-pgsql=/usr/local/pgsql
--without-gd --with-xml --enable-track-vars --enable-magic-quotes
--enable-debugger --enable-trans-sid --without-mysql
--sysconfdir=/etc/httpd/ --enable-ftp
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19248&edit=1