-1

I am using Avairy Editor to edit photos. After Editing I want to copy that image to my folder but it is not copying.

This is my code using copy function

copy("http://featherfiles.aviary.com/2013-06-29/c-4n02w430qUbilqgQgRJw/23df66d714074321bb256a6e9ab4bf27.jpg","/home/content/04/8643604/html/iguanapaint/wp-content/uploads/2013/06/23df66d714074321bb256a6e9ab4bf27.jpg")

I also tried with file_get_contents

file_put_contents("/home/content/04/8643604/html/iguanapaint/wp-content/uploads/2013/06/23df66d714074321bb256a6e9ab4bf27.jpg",file_get_contents("http://featherfiles.aviary.com/2013-06-29/c-4n02w430qUbilqgQgRJw/23df66d714074321bb256a6e9ab4bf27.jpg"));

directory permissions are fine becuause when I copy the file without editing it on Aviary , it is easily copying.

Please help. Thanks!!!

4

1 回答 1

0

尝试添加这个.htaccess

php_value allow_url_fopen On

但请记住,并非所有主机都允许这样做。如果它不起作用,您必须联系您的主机并要求他们为您启用它。

于 2013-06-29T14:07:19.247 回答