In Progress

php scripts that will copy directory from one place to anoth

Hello,

I need a php script that will copy a directory from one place to another.

This script will be run from a browser.

Not sure if permissions will be a problem?

I need a script that will take input from me and will allow me to specify the source and the destination each time I use it.

I tried the example below but it did not work:

<?php

function full_copy( $source, $target ) {

if ( is_dir( $source ) ) {

@mkdir( $target );

$d = dir( $source );

while ( FALSE !== ( $entry = $d->read() ) ) {

if ( $entry == '.' || $entry == '..' ) {

continue;

}

$Entry = $source . '/' . $entry;

if ( is_dir( $Entry ) ) {

full_copy( $Entry, $target . '/' . $entry );

continue;

}

copy( $Entry, $target . '/' . $entry );

}

$d->close();

}else {

copy( $source, $target );

}

}

$source ='/var/www/vhosts/123-wp-custom-files/themes/action_v4.6.1/';

$destination = '/var/www/vhosts/[url removed, login to view]';

full_copy($source, $destination);

}

?>

Skills: Linux, PHP

See more: php copy directory script, copy script place, custom scripts, php close browser, custom function php, permissions php, php directory copy, php copy directory, php copy files directory, source destination, copy entry, copy files linux script, input dir php, copy linux, mkdir script, theme directory, directory scripts, theme copy, custom php scripts, linux script run, linux run script, script php target, script php input, target php script, script copy files linux

About the Employer:
( 24 reviews ) Briarcliff Manor, United States

Project ID: #1118451

17 freelancers are bidding on average $67 for this job

soner

I can do this easily. I'm php expert. Please contact if interested.

$60 USD in 0 days
(123 Reviews)
8.1
ichurakov

I can do this.

$30 USD in 0 days
(215 Reviews)
6.3
kopila123

please view pm

$30 USD in 1 day
(104 Reviews)
6.3
skrmm1

Hey there. I can help you. Cheers!

$45 USD in 1 day
(61 Reviews)
5.8
PHPsoldier

########################################################################################################################## DEAR SIR, PHP EXPERT HERE. CAN DO IT. MANY THANKS... ####################################### More

$30 USD in 2 days
(51 Reviews)
5.7
phpXpertbd

Hi, This is easy.

$30 USD in 0 days
(19 Reviews)
5.6
RajanKaneria

Hello sir, Please Check PMB.!

$30 USD in 0 days
(13 Reviews)
4.6
sanketkumarb

You can trust me on this!!!

$100 USD in 0 days
(5 Reviews)
3.4
spiczek

Hello, please check the PM.

$30 USD in 0 days
(4 Reviews)
3.1
InterWebDes

I can do this.

$75 USD in 0 days
(2 Reviews)
3.8
pokharelishwor

Please check PM.

$30 USD in 1 day
(3 Reviews)
2.0
superkonduktor

your script is wrong. check PMB

$30 USD in 0 days
(1 Review)
1.3
Zikas

I just do this for one of our client

$40 USD in 1 day
(0 Reviews)
0.0
rohitag

Hi Please check your PMB!!

$200 USD in 2 days
(0 Reviews)
0.0
GauravMalik86

Work 4 years as a Software Developer. Familiar with Enterprise technologies (Documentum, different Application Servers) and many programming languages. Technical Skills: Documentum ( 2 years ) DC, WebTop, More

$101 USD in 2 days
(0 Reviews)
0.0
yohannesmitke

php php php php php hph

$30 USD in 4 days
(0 Reviews)
0.0
vuvan04

Please check your PMB

$250 USD in 10 days
(0 Reviews)
0.0