oss不是教程做得不好,根本就是没有教程!
oss提供了api和sdk工具,但是相当于没有提供,你知道__format返回了什么?
教程中所列的函数无法直接使用。
list_objects(oss):
|-----------------------Start--------------------------------------------------------------------------------------------------- |-Status:403 |-Body: AccessDenied AccessDenied 51E33F0385C691CF6AECA87C phpsdk1349849394.oss-internal.aliyuncs.com |-Header: Array ( [date] => Mon, 15 Jul 2013 00:14:59 GMT [content-type] => application/xml [connection] => close [content-length] => 230 [server] => AliyunOSS [x-oss-bucket-location] => oss-hangzhou-a [x-oss-request-id] => 51E33F0385C691CF6AECA87C [_info] => Array ( [url] => http://phpsdk1349849394.oss-internal.aliyuncs.com [content_type] => application/xml [http_code] => 403 [header_size] => 236 [request_size] => 390 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.006681 [namelookup_time] => 2.0E-5 [connect_time] => 0.002954 [pretransfer_time] => 0.002955 [size_upload] => 0 [size_download] => 230 [speed_download] => 34425 [speed_upload] => 0 [download_content_length] => 230 [upload_content_length] => 0 [starttransfer_time] => 0.006664 [redirect_time] => 0 [redirect_url] => [primary_ip] => 10.249.202.135 [certinfo] => Array ( ) [primary_port] => 80 [local_ip] => 10.132.4.199 [local_port] => 59372 [method] => GET ) [x-oss-request-url] => http://phpsdk1349849394.oss-internal.aliyuncs.com [x-oss-redirects] => 0 [x-oss-stringtosign] => GET application/x-www-form-urlencoded Mon, 15 Jul 2013 00:14:59 GMT /phpsdk1349849394/ [x-oss-requestheaders] => Array ( [Content-Type] => application/x-www-form-urlencoded [Date] => Mon, 15 Jul 2013 00:14:59 GMT [Host] => phpsdk1349849394.oss-internal.aliyuncs.com [max-keys] => 100 [Authorization] => OSS zDnxR1EpxpGqTjlj:ZCdHhj7P XW/SanVNcKxoTNOLRk= ) ) -----------------------End-----------------------------------------------------------------------------------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。