note 41066 added to function.copy

From: Date: Mon, 29 Mar 2004 11:51:00 +0000
Subject: note 41066 added to function.copy
Groups: php.notes 
Request: Send a blank email to php-notes+get-67315@lists.php.net to get a copy of this message
An improved version of ls_a from objobj at hotmail dot com: PHP no longer complains about undefined $files variable. function ls_a($wh) { $files_array = array(); if ($handle = opendir($wh)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != ".." ) { array_push($files_array, $file); } } closedir($handle); } return $files_array; } ---- Manual Page -- http://www.php.net/manual/en/function.copy.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+41066 Delete -- http://master.php.net/manage/user-notes.php?action=delete+41066&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+41066&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#67315) next »