#23472 [Bgs]: ftp_site() does reply only false/true

From: Date: Sun, 04 May 2003 03:45:12 +0000
Subject: #23472 [Bgs]: ftp_site() does reply only false/true
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39010@lists.php.net to get a copy of this message
 ID:               23472
 Updated by:       pollita@php.net
 Reported By:      marxim at mail dot ee
 Status:           Bogus
 Bug Type:         FTP related
 Operating System: Linux
 PHP Version:      4.3.1
 New Comment:

*UN*officially, it will *PROBABLY* work to take the ext/ftp directory
from a PHP5 snapshot (http://snaps.php.net) and copy it over the
ext/ftp directory in your PHP4.3 tarball.

Do this *AT YOUR OWN RISK*.  Code in PHP5 has not passed quality
assurance standards and mixing code between branches is neither tested
nor officially supported.  There are many extensions in which this will
certainly not work, but for the ftp extension you will probably be
okay.


Previous Comments:
------------------------------------------------------------------------

[2003-05-03 18:27:38] marxim at mail dot ee

Then again, my question was: how can get output from raw commands or
how can i execute/run raw commands? There isnt any function what does
the job :(

------------------------------------------------------------------------

[2003-05-03 18:15:35] derick@php.net

ftp_raw() is added, but only in CVS (see
http://www.php.net/manual/en/function.ftp-raw.php)
and the
documentation for ftp_site() says this:

bool ftp_site ( resource ftp_stream, string cmd)

ftp_site() sends the command specified by cmd to the FTP server. SITE
commands are not standardized, and vary from server to server. They are
useful for handling such things as file permissions and group
membership.

Returns TRUE on success or FALSE on failure. 

Not a bug -> bogus

------------------------------------------------------------------------

[2003-05-03 17:58:36] marxim at mail dot ee

ftp_site() does only reply false/true, but not what it gets from
server. Also, ftp_raw() function does not exist. So, is any way to get
some information from ftp server if i type some raw commands?

Grz.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=23472&edit=1



Thread (4 messages)

« previous php.bugs (#39010) next »