php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #8717 feature request: have ftp_rawlist add extra params to the LIST command
Submitted: 2001-01-15 12:40 UTC Modified: 2011-12-04 04:00 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:2 (50.0%)
Same OS:2 (50.0%)
From: anri at gmx dot de Assigned: frozenfire (profile)
Status: Closed Package: FTP related
PHP Version: * OS: *
Private report: No CVE-ID: None
 [2001-01-15 12:40 UTC] anri at gmx dot de
ftp_rawlist execs the command "LIST" on the server, an important feature is to make it possible to add command parameters (esp. to list hidden files, etc), like "LIST -al"


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-04 05:48 UTC] sniper@php.net
Updated the topic and other fields.

 [2003-01-23 09:47 UTC] jukkaho at mail dot student dot oulu dot fi
A workaround is to add these flags directly to a directory string like:

$results=ftp_rawlist($ftpres,"-la $directory");
 [2003-05-27 10:45 UTC] Alan at alexeysoft dot com
Writen in script :

$fichiers = ftp_rawlist($conn_id, "-la ".${"Dirr".$i}); 
// Get List Dir as Array

Don't work.

Drirectory : (CD) TATU_200_kmh_in_the_wrong_lane
After read by ftp_rawlist coverted to : ) (cd)

Please say me, where error ? or this bug very Big ?

With best regards, 
Alan.
 [2010-11-19 00:17 UTC] jani@php.net
-Package: Feature/Change Request +Package: FTP related
 [2011-09-16 21:12 UTC] tyrael@php.net
-Status: Analyzed +Status: Open
 [2011-09-16 21:12 UTC] tyrael@php.net
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

you can pass that via the second argument of ftp_rawlist:
http://php.net/manual/en/function.ftp-rawlist.php#48339
the documentation should mention this
 [2011-09-16 21:13 UTC] tyrael@php.net
-Type: Feature/Change Request +Type: Documentation Problem
 [2011-12-04 03:59 UTC] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=320342
Log: Clarifies that arguments to the LIST command may be used in the $directory argument. Finally closes bug #8717.
 [2011-12-04 04:00 UTC] frozenfire@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC