if you don't exist, we are going to make you. then we are going to open you up.


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. if (!is_dir(UPLOAD_DIR . $dir)) {
  2. @mkdir(UPLOAD_DIR . $dir);
  3. @chmod(UPLOAD_DIR . $dir, 0777);
  4. }

URL: http://bettesmidler.com/code/2009-08-20.htm

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.