Welcome Guest, Not a member yet? Register   Sign In
Directory tree as an associative array?
#2

[eluser]TheFuzzy0ne[/eluser]
I'm not sure if it's a wise idea. If you were to call this function in a directory that contained many levels of directories, you could end up using a very large amount of memory, or possible even exhausting it completely. Calling a function recursively like that on a potentially unlimited result set could be a real painus in the anus.

Can I ask what you're hoping to achieve, as there's probably a much better solution?


Messages In This Thread
Directory tree as an associative array? - by El Forum - 02-21-2009, 10:27 AM
Directory tree as an associative array? - by El Forum - 02-21-2009, 10:48 AM
Directory tree as an associative array? - by El Forum - 02-21-2009, 10:52 AM
Directory tree as an associative array? - by El Forum - 02-21-2009, 11:25 AM
Directory tree as an associative array? - by El Forum - 02-21-2009, 11:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB