连接到英国的Rackspace云文件时出现问题
不知道为什么以下代码
$auth = new CF_Authentication(USERNAME, API_KEY, NULL, UK_AUTHURL);
给了我
PHP Fatal error: Uncaught exception 'InvalidResponseException' with message 'Unexpected response (): ' in /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php:212
Stack trace:
0 /var/www/sites/mysite/http//test-rackspace.html(17): CF_Authentication->authenticate()
1 {main}
thrown in /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php on line 212
?
以前我错误地尝试使用以下方法连接到美国服务器:
$auth = new CF_Authentication(USERNAME, API_KEY);
这给了我:
PHP Fatal error: Uncaught exception 'AuthenticationException' with message 'Invalid username or access key.' in /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php:209
Stack trace:
0 /var/www/sites/mysite/http/test-rackspace.html(17): CF_Authentication->authenticate()
1 {main}
thrown in /var/www/sites/mysite/http/inc/rackspace/cloudfiles.php on line 209
我已经尝试过1.7.9 / 1.7.8 / 1.7.6版本的代码。没有任何区别。
任何帮助大量赞赏,撕裂我的头发在这里!
没有找到相关结果
已邀请:
1 个回复
芜任亮蜡