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