$aaaa =base64_encode (file_get_contents (' http://t10.baidu.com/it/u=3419096712,54017040&fm=55&s= 6a00f50b4aeb0298352025a50300a022&w=121&h=81&img. JPEG ')); File_put_contents ('./uploads/jquery.jpg ', file_get_contents (Base64_decode ($AAAA)));
Why is the file not written to:
Reply to discussion (solution)
Can you open that picture address?
Prompt after opening: 403 Forbidden
Can you open that picture address?
Prompt after opening: 403 Forbidden
$aaaa =file_get_contents (' http://img211.poco.cn/mypoco/myphoto/20080924/3526959720080924225448061_640.jpg ');
File_put_contents ('./uploads/jquery.jpg ', file_get_contents ($AAAA));
I do not decode the code are not written in ...
Confirm that the uploads directory exists and is writable
Confirm that the uploads directory exists and is writable
You can?
$aaaa =file_get_contents (' http://img211.poco.cn/mypoco/myphoto/20080924/3526959720080924225448061_640.jpg '); File_put_contents ('./uploads/jquery.jpg ', $aaaa);