mosso - How to change TTL of a file on a cloud through PHP -


i trying change ttl value of container created on rackspace cloud. created php script still new php , project little on head. know possible use guidance on how work.

here code:

<?php require('cloudfiles.php'); $username = "username"; $key = "api_key"; $containname = "containername";  $auth = new cf_authentication($username, $key); $auth->authenticate(); $conn = new cf_connection($auth);  $container = $conn->get_container($containname);  $container->make_public(1);  ?> 

in docs make_public() method says:

either enable container's content served via cdn or adjust cdn attributes.

so guess can call again new ttl value.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -