note 64917 deleted from function.ftp-rawlist by nlopess

From: Date: Sat, 22 Apr 2006 22:26:32 +0000
Subject: note 64917 deleted from function.ftp-rawlist by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-109097@lists.php.net to get a copy of this message
Note Submitter: totx at sbgro dot com ---- <?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)); //--здесь обрабатываемый код } } ?>

« previous php.notes (#109097) next »