Created
June 4, 2014 02:12
-
-
Save ycombinator/77fd403413e605c2ebe9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once "cloudfiles.php"; | |
// Authenticate. | |
$cfAuth = new CF_Authentication("username", "api key"); | |
$cfAuth->authenticate(); | |
// Get connection. | |
$cfConn = new CF_Connection($cfAuth); | |
// Get container. | |
$container = $cfConn->get_container("foo"); | |
// Get file from container. | |
$file = $container->get_object("bar.txt"); | |
// Update file in container. | |
$file->load_from_filename("./bar.txt"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment