Re: [PHP] Am I supposed to be using SPL?

2006-06-02 Thread Kevin Waterson
This one time, at band camp, Richard Lynch [EMAIL PROTECTED] wrote: So, of all the things that COULD go wrong, we just assume it's No files Found??? I don't think I'll ever learn to like SPL or try/catch... Ok, I think my example was a little too simplistic... You could of course create

Re: [PHP] Am I supposed to be using SPL?

2006-06-01 Thread Kevin Waterson
This one time, at band camp, D. Dante Lorenso [EMAIL PROTECTED] wrote: Is SPL meant to be used? If so, is it experimental? Is it documented? Should I stay away from SPL for production code? What's the official word? Officially SPL is part of PHP. It provides a standard interface for

Re: [PHP] Am I supposed to be using SPL?

2006-06-01 Thread Richard Lynch
On Thu, June 1, 2006 3:52 am, Kevin Waterson wrote: This one time, at band camp, D. Dante Lorenso [EMAIL PROTECTED] wrote: Is SPL meant to be used? If so, is it experimental? Is it documented? Should I stay away from SPL for production code? What's the official word? Officially SPL is

Re: [PHP] Am I supposed to be using SPL?

2006-06-01 Thread Jochem Maas
Richard Lynch wrote: On Thu, June 1, 2006 3:52 am, Kevin Waterson wrote: This one time, at band camp, D. Dante Lorenso [EMAIL PROTECTED] wrote: Is SPL meant to be used? If so, is it experimental? Is it documented? Should I stay away from SPL for production code? What's the official word?

[PHP] Am I supposed to be using SPL?

2006-05-31 Thread D. Dante Lorenso
I was about to write code to recursively list the contents of a directory when I remembered seeing an object in SPL that would do it for me: http://us3.php.net/manual/en/function.recursivedirectoryiterator-next.php But there is no documentation on this object, and although I have it in

Re: [PHP] Am I supposed to be using SPL?

2006-05-31 Thread Jochem Maas
your not supposed to do anything ;-) but you can if you like :-) ... D. Dante Lorenso wrote: I was about to write code to recursively list the contents of a directory when I remembered seeing an object in SPL that would do it for me:

[PHP] get directory paths recursively using SPL ... was Re: [PHP] Am I supposed to be using SPL?

2006-05-31 Thread D. Dante Lorenso
Jochem Maas wrote: also take a look here: http://www.wiki.cc/php/RecursiveDirectoryIterator yes it's meant to be used, yes you can use it in production BUT your a little on the bleeding edge (not very many people using it full on) AND the whole of SPL is still a little in flex (as is php5-php6