Page 1 of 1

Problem in copy

PostPosted: Wed Feb 04, 2009 1:59 am
by guru
Hi There,

I have problem of copy file from xxx.xxx.x.xx1 to xxx.xxx.x.xx2 so please help me How should i write a code for that.

code i written for is like

$file = \\xxx.xxx.x.xx1\foldername\file123.wav
$newfile = /newfl/file123.wav

if(!copy($file,newfile))
{
echo "Error in copy";
}

PostPosted: Wed Feb 04, 2009 7:49 am
by mflorell
you're really going to have to be a lot more specific here. Also, what exactly does that have to do with VICIDIAL?

Re: Problem in copy

PostPosted: Fri Feb 06, 2009 11:17 pm
by williamconley
guru wrote:if(!copy($file,newfile))

Why is there a "$" in front of "file" but not in front of "newfile"?

And (as Matt asked) why is this beginner scripting test question posted in the Vicidial Forum?

And (if this wasn't a test question) what exactly are you "guru" Of? :oops: