php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19248 ftp_connect failed
Submitted: 2002-09-05 07:52 UTC Modified: 2002-12-10 08:57 UTC
From: a dot desbois at regie-france dot com Assigned:
Status: Closed Package: FTP related
PHP Version: 4.3.0-dev OS: AIX 4.3
Private report: No CVE-ID: None
 [2002-09-05 07:52 UTC] a dot desbois at regie-france dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-05 15:06 UTC] 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-09 07:53 UTC] a dot desbois at regie-france dot 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-09 08:01 UTC] 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 09:32 UTC] a dot desbois at regie-france dot 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 11:53 UTC] venaas@php.net
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?
 [2002-09-11 07:19 UTC] a dot desbois at regie-france dot com
I tried ftp_connect() with an IP address as argument ... same trouble.
In main/php_config.php, #define HAVE_GETADDRINFO 1
 was already uncommented , so I commented it ... and tried again.
Make output is available at
http://demoweb.regie-france.com/make_20020911.stdout. Have you noticed the
warnings in ext/ftp/ftp.c ?
Test is available at http://demoweb.regie-france.com/test.php
 [2002-12-07 01:48 UTC] iliaa@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


 [2002-12-10 02:26 UTC] a dot desbois at regie-france dot com
It works fine now and I don't know what has happened.
 [2002-12-10 08:57 UTC] sniper@php.net
Closing then.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 19:01:30 2024 UTC