Bug #74389 [Com]: error ftp_connect doesn't exist
| From: | spam2 at rhsoft dot net | Date: | Fri, 07 Apr 2017 06:43:42 +0000 |
| Subject: | Bug #74389 [Com]: error ftp_connect doesn't exist | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-208377@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74389&edit=1
ID: 74389
Comment by: spam2 at rhsoft dot net
Reported by: jmichae3 at yahoo dot com
Summary: error ftp_connect doesn't exist
Status: Not a bug
Type: Bug
Package: FTP related
Operating System: windows 7 x64
PHP Version: 7.1.3
Block user comment: N
Private report: N
New Comment:
> http://php.net/manual/en/ftp.installation.php
> this doesn't take into account that PHP doesn't have an installer anymore
what are you talking about?
"In order to use FTP functions with your PHP configuration, you should add the --enable-ftp
option when installing PHP" is about ./configure when you buil dfrom source and in that case it
would be statically compiled in the php-binary (fedora and redhat rpm packages as example just have
the ftp functions available)
when you compile it with "--enable-ftp=shared" you get a extension which needs to be
loaded in php.ini with "extension = ftp.so" and if whoever built your php binaries did put
it into a own rpm/deb package than seek it
anyways THIS IS NOT a PHP bug, the problem exists between chair and keyboard
Previous Comments:
------------------------------------------------------------------------
[2017-04-07 02:15:27] jmichae3 at yahoo dot com
http://php.net/manual/en/ftp.installation.php
this doesn't take into account that PHP doesn't have an installer anymore. FTP cannot be
installed. it comes as a .zip file that you extract. is this something those docs are old. php.ini
needs to be installed
that needs to be enabled for it to work.
;extension=php_ftp.dll
needs to be changed to
extension=php_ftp.dll
in fact, a lot of things are disabled for development for some strange reason, even mysql and pg
stuff.
please update the installation instructions. for *nix, there's probably an equivalent .so file
(shared library, same as a .dll in windows) to enable FTP.
------------------------------------------------------------------------
[2017-04-06 19:17:15] requinix@php.net
http://php.net/manual/en/ftp.installation.php
------------------------------------------------------------------------
[2017-04-06 19:13:57] jmichae3 at yahoo dot com
Description:
------------
Fatal error: Uncaught Error: Call to undefined function ftp_connect() in L:\w2\jtr\ftp7a.php:360
Test script:
---------------
$host='somewhere.com';
$conn_id = ftp_connect($host);
Expected result:
----------------
a resource id
Actual result:
--------------
Fatal error: Uncaught Error: Call to undefined function ftp_connect() in L:\w2\jtr\ftp7a.php:360
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74389&edit=1