php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #10256 Documentation error
Submitted: 2001-04-09 21:54 UTC Modified: 2001-04-10 09:29 UTC
From: webkid at webkid dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0.14 OS: CGI on Apache
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: webkid at webkid dot com
New email:
PHP Version: OS:

 

 [2001-04-09 21:54 UTC] webkid at webkid dot com
The ftp_connect and other ftp commands are not supported in PHP 3.0.14, as the documentation states. An example:

<?
$id=ftp_connect("$host");
ftp_login($id, "$user", "$pass");
printf nlist($id, "/home/$user");
printf rawlist($id, "/home/$user");
ftp_quit($id);
?>

Results in:

Fatal error: Call to unsupported or undefined function ftp_connect() in odd.php3 on line 2

This was verison of the CGI PHP 3.0.14 was wupplied with the site, so perhaps it's an option that was initally edited to create the infunctionality. (What's even better is that my providers insist that I'm using PHP 4)

Any help would be apreciated.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-10 09:29 UTC] hholzgra@php.net
so the ftp functions have not been included
into the CGI executeable that you use

these functions are not enabled by default,
you have to explicitly give the --with-ftp
option to configure before building the
CGI executeable to enable them
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 06:01:29 2024 UTC