Copy Function Errors
| From: | Wei, Alice J. | Date: | Wed, 16 Jul 2008 19:58:30 +0000 |
| Subject: | Copy Function Errors | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-276931@lists.php.net to get a copy of this message | ||
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
ajwei@indiana.edu