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!!!