note 64917 added to function.ftp-rawlist
| From: | totx at sbgro dot com | Date: | Sat, 22 Apr 2006 22:08:12 +0000 |
| Subject: | note 64917 added to function.ftp-rawlist | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-109095@lists.php.net to get a copy of this message | ||
<?php
$contents = ftp_rawlist($conn_id, $dir);
$co=count($contents);
//--ÑобиÑаем ÑаблиÑÑ
for($i=0;$i<=$co;$i++){
preg_match("/([a-z\-]{10})\s{1,}([0-9]{1})\s{1,}([a-z]+)\s
{1,}([a-z]+)\s{1,}([0-9]{1,})\s{1}([a-zA-Z]{3})\s{1,}([0-9]
{1,2})\s{1,}([0-9\:]{4,})\s{1}(.+)/i", $contents[$i], $regs);
//--еÑли не ÑоÑки или ниÑего
if($regs['9']!='.' && $regs['9']!='..'
&& $regs['9']!=''){
$type=strtolower(substr($regs['9'],-3));
//--здеÑÑ Ð¾Ð±ÑабаÑÑваемÑй
код
}
}
?>
----
Server IP: 195.54.192.44
Probable Submitter: 82.138.49.130
----
X-Spam-Status: Yes, hits=7.4 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HEAD_ILLEGAL_CHARS autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.ftp-rawlist.php
Edit -- http://master.php.net/note/edit/64917
Del: integrated -- http://master.php.net/note/delete/64917/integrated
Del: useless -- http://master.php.net/note/delete/64917/useless
Del: bad code -- http://master.php.net/note/delete/64917/bad+code
Del: spam -- http://master.php.net/note/delete/64917/spam
Del: non-english -- http://master.php.net/note/delete/64917/non-english
Del: in docs -- http://master.php.net/note/delete/64917/in+docs
Del: other reasons-- http://master.php.net/note/delete/64917
Reject -- http://master.php.net/note/reject/64917
Search -- http://master.php.net/manage/user-notes.php