Re: Quick Question
| From: | Martin Jansen | Date: | Sat, 25 Aug 2001 08:55:34 +0000 |
| Subject: | Re: Quick Question | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-288@lists.php.net to get a copy of this message | ||
On Sat, 25 Aug 2001 01:31:17 -0600 (MDT), Joseph Harkins wrote:
><?php
>include_once 'File/Find.php';
>
>list ($directories, $files) = File_Find::maptree(getcwd());
>
>?>
>
>And the resulting HTML output:
>Warning: Problem with method call - please report this bug in
>/usr/share/pear/File/Find.php on line 94
>Warning: First argument to array_push() needs to be an array in
>/usr/share/pear/File/Find.php on line 178
>Warning: First argument to array_push() needs to be an array in
>/usr/share/pear/File/Find.php on line 178
>Warning: First argument to array_push() needs to be an array in
>/usr/share/pear/File/Find.php on line 95
Please use
<?php
include_once 'File/Find.php';
$obj = new File_Find;
list ($directories, $files) = $obj->maptree(getcwd());
?>
instead.
- Martin