This script only outputs the top level. i.e.
-/
|
- folder1
|
- folder2
|
- folder3
it should be
- /
|
- folder1
| |
| - subdir1
| |
| - file1.ext
|
- folder2
| |
| - subdir2
| |
| - file2.ext
|
- folder3
|
- subdir3
|
- file3.ext
I
Jon wrote:
This script only outputs the top level. i.e.
that script has syntax errors. ...
$arFiles = array(
array['file1'](
array(
['path] = array(
[0] = 'folder1',
[1] = 'subfolder1'
[2] = 'file1.ext'
),
['length'] = 5464,
['size'] = 8765
),
Here is one that does not throw an error but does not produce the
desired results
class dir {
var $name;
var $subdirs;
var $files;
var $num;
var $prio;
function dir($name,$num,$prio) {
$this-name = $name;
$this-num = $num;
$this-prio = $prio;
$this-files = array();
OK, THIS one doesn't throw a syntax error ;)
class dir {
var $name;
var $subdirs;
var $files;
var $num;
var $prio;
function dir($name,$num,$prio) {
$this-name = $name;
$this-num = $num;
$this-prio = $prio;
$this-files = array();
$this-subdirs = array();
}
4 matches
Mail list logo