Hi,

I have a snippet of code here:

shell_exec("tar cvf /var/www/html/test/$id/data.tar 
/var/www/html/test/$id/data");

$file1="http:/www.mysite.com/test/$id/data.tar";
$file2="http://www.mysite2.com/test/$id/.tar";;

copy($file1,$file2);

I got the following error in the access log of the server:

[Wed Jul 16 15:45:57 2008] [error] PHP Warning:  
copy(http://www.mysite.com/test/145/data.tar) [<a 
href='function.copy'>function.copy</a>]: failed to open stream: HTTP wrapper 
does not support writeable connections. in /var/www/html/beam_calculation.php 
on line 20

Is there something I could do here to allow my file be "copied" to the remote 
server?

Anything is appreciated.

Alice
======================================================
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to