Posted By

traeregan on 11/10/09


Tagged

upload


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

silentbob84
BrianCoyDesign
gecube


Create New Folder For Each Day an Upload Occurs


 / Published in: PHP
 

  1. // Determine Upload Path
  2. $upload_path = $upload_root. date('m-d-y', time());
  3.  
  4. // If Directory for Today's Uploads Does Not Exist Already, Let's Create It
  5. if(!is_dir($upload_path))
  6. {
  7. mkdir($upload_path, 0777, true);
  8. }

Report this snippet  

You need to login to post a comment.