glob() to build array of files, or hardcode array? Speed is key, but automation is nice
问题 Sorry for the undescriptive title, wasn't to sure what to title this :-) I have written an API that loads required javascript libraries from a directory on my server. The directories have a specific format, the only thing that can differ is the file name format within each libraries' directory. The Directory Format _js/_source/_library_name_here/file_name_here.js e.g. /_js/_source/_fancybox/jQuery.lightbox-0.5.js The array (currently hardcoded) At the moment I have the separate libraries