Advertisement
Viruthagiri

Untitled

Aug 24th, 2011
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $allfiles = $_POST['allfiles'];
  2.     $separateby = $_POST['separateby'];
  3.     if($allfiles != "")
  4.     {
  5.         $files = explode($separateby,$allfiles);
  6.     }
  7.     for($i=0;$i<count($files);$i++)
  8.     {
  9.        
  10.         $file = trim($files[$i]);
  11.         $uploadfile = explode('/', $file);
  12.         $filename = array_pop($uploadfile);
  13.        
  14.         $newfilename = $news[$i];
  15.        
  16.         if (!$newfilename)
  17.         {
  18.             $newfilename = $filename;
  19.         }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement