Posted By

browncardigan on 02/08/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

eval


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


 / Published in: PHP
 

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

  1. if (!is_dir(UPLOAD_DIR . $dir)) {
  2. @mkdir(UPLOAD_DIR . $dir);
  3. @chmod(UPLOAD_DIR . $dir, 0777);
  4. }

Report this snippet  

You need to login to post a comment.