Advertisement
zero50x

Перемещение файлов на php

Nov 1st, 2015
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. $dir = "folder";
  2.  
  3. $file = "$dir/$files1[$i]"; // исходная папка
  4. $newfile = "$dir/bad/$files1[$i]"; // новая папка
  5.  
  6. if (!copy($file, $newfile)) {
  7.      echo "не удалось скопировать $file...\n";
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement