我正在尝试运行。
<?php
error_reporting(E_ALL);
copy(
'/var/www/vhosts/domain1.com/httpdocs/new/uploads/orderform_artwork_files/0900716d2ffdcb8.png',
'/var/www/vhosts/domain2.com/httpdocs/new/uploads/orderform_artwork_files/0900716d2ffdcb8.png'
);
这是我必须将一个域的数据克隆到另一个域的大图的一部分,服务器是相同的。
问题是,它没有复制文件,也没有错误。
编辑
这是我收到的警告信息
Warning: copy() [function.copy]: open_basedir restriction in effect. File(/var/www/vhosts/domain2.com/httpdocs/new/uploads/orderform_artwork_files/2e68a7b645a91d9.xls) is not within the allowed path(s): (/var/www/vhosts/domain1.com/httpdocs/:/tmp/) in /var/www/vhosts/domain1.com/httpdocs/new/cron/cloneToCCS.php5 on line 155