PHP 7.0.1 ftp support?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP 7.0.1 ftp support?

Postby dipfreez » 05. January 2016 17:11

Hello,

I get this error with XAMPP 7.0.1 on Windows 10:

"Fatal error: Uncaught Error: Call to undefined function ftp_connect() in ..."

When I used older versions of php/XAMPP, there was this line in phpinfo(): "FTP support enabled". Now that line is missing.

Any suggestions?
Thanks!
dipfreez
 
Posts: 3
Joined: 05. January 2016 17:01
Operating System: Windows 10

Re: PHP 7.0.1 ftp support?

Postby Nobbie » 05. January 2016 17:56

Send a bug report to Bitnami.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: PHP 7.0.1 ftp support?

Postby dipfreez » 06. January 2016 09:28

I had the impressions Bitnami offers the addons (which I'm not using). And for XAMPP I can't find a place to submit bug reports, except this forum.

Can someone please confirm this is a bug with XAMPP 7.0.1 and not something with my setup? The following script is enough to throw the fatal error:

<?php
ftp_connect('test');
?>
dipfreez
 
Posts: 3
Joined: 05. January 2016 17:01
Operating System: Windows 10

Re: PHP 7.0.1 ftp support?

Postby Nobbie » 06. January 2016 10:44

Due to the PHP Documentation, PHP Functions are either builtin or not present:

In order to use FTP functions with your PHP configuration, you should add the --enable-ftp option when installing PHP.

The Windows version of PHP has built-in support for this extension. You do not need to load any additional extensions in order to use these functions.


from http://php.net/manual/en/ftp.installation.php

So you cannot setup something wrong, as there is no user setup required.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: PHP 7.0.1 ftp support?

Postby Altrea » 08. January 2016 19:19

Hi,

The FTP extension is already included into PHP but not loaded.

please add the following line to your php.ini at line ~995:
Code: Select all
extension=php_ftp.dll

Save the file and restart Apache.

Best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: PHP 7.0.1 ftp support?

Postby dipfreez » 09. January 2016 09:03

Thank you very much, it works!
dipfreez
 
Posts: 3
Joined: 05. January 2016 17:01
Operating System: Windows 10


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 126 guests