Copy file directory to another directory in php

0

$path = 'images/folder1/one1.jpg';
$newfile = 'Images/folder/one_thumb1.jpg';

if (!copy($path, $newfile)) {
echo "failed to copy";
}else{
echo "copy Sucesss.";
}

Related Posts

Leave a Reply

2 × five =

Text Widget

Nulla vitae elit libero, a pharetra augue. Nulla vitae elit libero, a pharetra augue. Nulla vitae elit libero, a pharetra augue. Donec sed odio dui. Etiam porta sem malesuada magna mollis euismod.

Recent Works

Recent Comments