PhpTips.im - Everything about php - Download CMS, find tips and tricks, code snippetz, classes and more and more...
Bookmark this page !
   

Articles

    Home » Articles » PHP Snippets » Create New Folder For Each Day an Upload Occurs
Published on : 15.05.2010 Category : PHP Snippets Viewed : 255 times.

Code:


  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. }



Add this article in :

 

There is not yet any comment !



1093 Rating: 5.7/10 (3 votes cast)

 

 Members
Log In !
Email Address :

Password :


Change my passowrd !
Sign Up !
We have : 3 members.
Latest member : albans
 
 Last Posts
 
 Advertising
 
©PhpTips.im 2010
Powered by PikaCMS.
Quick Links :
Home | Browse all articles | Downloads | Terms of Use
RSS RSS 2.0 : Articles | Downloads ATOM : Articles | Downloads