Reputation: 1
$path = 'http://fbcdn-profile-a.akamaihd.net/hprofile-ak-snc6/372096_100002534902767_1927052265_n.jpg';
$info = file_put_contents('new/angel.jpg', file_get_contents(urldecode($path)));
echo $info;
It works fine on localhost
but it did not work on my website.
Any idea what the problem might be?
Upvotes: 0
Views: 1690
Reputation: 2190
$info=file_put_contents('new/angel.jpg', file_get_contents(urldecode($path)))
; before your "new" folder and try i think this might be a problem Upvotes: 0
Reputation: 560
you need to give a permission (write ) to upload folder
you can do that by the FTP program by using this codes in numeric value :777
Upvotes: 0
Reputation: 4033
Upvotes: 3