[PHP] Help with references?

2005-01-28 Thread Jon
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

Re: [PHP] Help with references?

2005-01-28 Thread Jochem Maas
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 ),

Re: [PHP] Help with references?

2005-01-28 Thread Jon
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();

Re: [PHP] Help with references? again

2005-01-28 Thread Jon
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(); }