Auto Menu (PHP)

More often than not, I get asked to upload and link some files from our teachers to one page or another.  This is part of my job and I’m happy to do it.  But sometimes, I get asked to upload 20 – 30 files in one email.  This gets tedious.  And generally, I’ve no sooner finished than I get another email requesting a couple more in another location.  Complaining about this seems a little childish, but the truth is, it’s boring work that takes time.

How geeks deal with repetitive tasks

How geeks deal with repetitive tasks

I’m a great believer in “Work Smart, not Hard”.

Work smart, not hard

Work smart, not hard – nailed it!

Being a WSNH believer (some would say an evangelist), I wrote this bit of code, which automatically populates a page full of links to the resources inside a folder.  It even takes into account sub-folders.

Script

Hopefully, you can implement this yourselves, but if not, drop me a line.

You can download the script here.  I could have pasted it here, but the formatting was lost and it looked really ugly.

Advertisements

One Response to Auto Menu (PHP)

  1. […] to rename the video file with the user’s username, time and date.  Using a variation on the auto menu code I shared last time on this blog, the user sees a list of all the videos containing their […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: