I'm brand-spanking new to PHP, so please be gentle.
I'm trying to create a dynamically-populated page navigation for a frequently-updated site. I thought I'd use something like GLOB_ONLYDIR
or is_dir
(all the pages I'm looking for will be in their own directories) to generate an array that the navigation can build itself from, but from what I've read frequent calls to the server like that (scanning up to fifty directories, creating the array on every page visited, and who knows how many site visitors) can be taxing on the server.
Is this true? I'd like to avoid using an XML for the directory, but does calling php that often create a memory drain (on what is admittedly already a memory-heavy site - lots of motion graphics, transparencies, javascript animation, etc), or should it be no more a drain than your usual php page generation?
Thanks, ~gyz