Menu
When I run this code:
[code=php]
if(!@copy(‘http://www.choicenator.com/ajax/selectcontender.js’,’/home/$user/public_html/$shop/ajax/selectcontender.js’))
{
$errors= error_get_last();
echo “COPY ERROR: “.$errors[‘type’];
echo “<br />n”.$errors[‘message’];
} else {
echo “File copied from remote!”;
}
I am getting this error:
[QUOTE]
COPY ERROR: 2
copy(/home/magnif9/public_html/$shop/ajax/selectcontender.js) [function.copy]: failed to open stream: No such file or directory
You can copy and paste the file source and see that it is the correct location. I have set the file permissions to 777. Any ideas?
Thanks,
Chris