But I'm not going to describe the service that Rackspace can offer as CDN, I maybe will do it in the future but not today. Today I'm going to describe how to fix a problem with the PHP CloudFiles API binding.
When working with the UK endpoint, you cannot use the copy_object_to and the move_object_to functions of the CFObject class because these ones are broken.
In odred to make the PHP binding working again you should only search for the lines below in the cloudfiles_http.php file:
$url_path = $this->_make_path("STORAGE", $container_name_source, rawurlencode($src_obj_name));
$destination = rawurlencode($container_name_target."/".$dest_obj_name);
And replace them with the next ones:
$url_path = $this->_make_path("STORAGE", $container_name_source, $src_obj_name);
$destination = $container_name_target."/".$dest_obj_name;
I don't know why but, these lines are the last updates that the project received (six months ago or so), and reverting them, functions mentioned above were brought back to life.
- Rackspace PHP binding page on Github: https://github.com/rackspace/php-cloudfiles

It's always interesting to learn how other people use Rackspace Cloud Files and OpenStack. You can also check out CloudBerry Explorer freeware that helps to manage Cloud Files and OpenStack Object Storage on Windows http://www.cloudberrylab.com/free-openstack-storage-explorer.aspx
ReplyDeleteGirlincloud,
CloudBerry Lab team
CloudBerry looks promising but it would be nice to see a Linux version. I'm currently working only on Linux platforms and it's impossible to find a client for that platform. I think that a lot of companies working with CloudFiles would pay for it.
DeleteFurthermore, there is a little confusion about the UK endpoint and the US one in some clients but it's a different issue ;-)