我想從S3文件並將其移動到我的本地文件系統,我收到此錯誤的file_get_contents需要一個字符串
的file_get_contents()預計參數1是字符串,對象給出
$upload_directory = "C:\wamp\test";
$s3 = new AmazonS3("key", "pass");
$source = $s3->getObject("bucket","file.mp3");
$destination = "C:\wamp\test\file.mp3";
$data = file_get_contents($source);
$handle = fopen($destination, "w");
fwrite($handle, $data);
fclose($handle);
'AmazonS3'類從哪裏來?那個類的文檔在哪裏?當你處理它時:文檔對這個類的getObject方法說了些什麼? – Oswald 2011-05-03 01:33:27