Basically, this code goes through a directory on your server and outputs the result to a JavaScript array, $fileslist
in this case. As this script is not in production on any of my projects, I'm sure it could be more efficient, but it definitely works; just change the directory referenced by the $dir
variable to match your own.
Note: there are probably better ways of doing this, even if you accept the premise of the article.
Continue reading →When I worked at an ad agency we had a version of our TV reel on DVD that I created, categorized by budget. I was then asked to put this version of the reel online, so people could view it that way instead, which was a good idea.
Continue reading →