Hey all,
I've been playing with this script for the last couple of hours:
$path1 = "/var/www/vhosts/domain.com/httpdocs/new/test/test.jpg";
$path2 = "/var/www/vhosts/domain.com/subdomains/img/httpdocs/test/test.jpg";
if (!copy($path1, $path2)) {
echo "failed to copy file...";
}
error reporting is disabled so I can't see the actual error but I'm assuming it's got something to do with permissions.
I guess it should work if /test/ on the subdomain was set to chmod 777 but really don't wanna do that.
What are my options?
Any help is greatly appreciated
c