not only test the directory for 777, but also ensure the http link is right..

i see peeps append a / at the end when it ain't needed..

2c