0
我试图将照片张贴到Facebook和只要图像是在同一个文件夹中的PHP脚本它的作品上传图片:PHP - 从外部服务器
$file= "myimage.png";
$args = array(
'message' => 'Photo from application',
);
$args[basename($file)] = '@' . realpath($file);
$ch = curl_init();
我需要做什么来改变,使之成为外部图像工作,比如:
$file= "http://www.example.com/myimage.png";
http://stackoverflow.com/questions/724391/saving-image-from-php-url-using-php – transilvlad
http://stackoverflow.com/questions/909374/copy-image-from-remote-server -over-http – transilvlad
在那里,我找到了两个答案给你一个好的Google搜索。 – transilvlad