in reply to list dir contents, w/o some stuff
thanx Rich36, for now yours seems the easiest for me to understand :)
just for reference, the die print "blah"; I was just using for debugging when viewed from the browser, any better way to do that, anyone?
thanx all!