note 40905 added to function.ftp-size

From: Date: Thu, 18 Mar 2004 16:03:14 +0000
Subject: note 40905 added to function.ftp-size
Groups: php.notes 
Request: Send a blank email to php-notes+get-67025@lists.php.net to get a copy of this message
Just to let people out there know, on my windows 2000 server running Apache and php i was returned 0 not -1 for directories. foreach ($dir_list as $item) { if(ftp_size($conn_id, $item) == "0") { echo "<br>Directory:: ".$item; } else { echo "<br>File:: ".$item; } } This outputs a list of the remote directory and indicates which items are directories and which are files. ---- Manual Page -- http://www.php.net/manual/en/function.ftp-size.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40905 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40905&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40905&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67025) next »