got everything working but the function that makes the directory for the uploads/cache. apparently mkdir is broken in hhvm