in reply to Check Directory using cgi script

check permissions.