Operating systemsOS : Windows / Linux / BSD / Solaris
Program licensingScript Licensing : Other Free / Open Source License - MIT License
CreatedCreated : Jul 18, 2007
Size downloadDownloads : 3
Program licensing
Thank you for voting...

PHP-AWS is a collection of PHP classes that let you ...

php-aws by tylerhall is a collection of PHP classes that let you take advantage of Amazon's web services platform (AWS). Currently, we have classes for use with
- Simple Storage Service (S3)
- Simple Queue Service (SQS)
- Elastic Compute Cloud (EC2)
- Mechanical Turk (MTurk)
__construct($key, $secret)
The S3 constructor initializes $this->_hasher using Amazon key and secret key you supply.
Returns the base-64 encoded version of string $str.
Returns true if $bucket is one of your available buckets. If false is returned, the bucket may potentially exist for another user.
Attempts to create $bucket as a new bucket in your account. Returns true on success. If not successful, false is returned and $this->error is set with the error message received from Amazon.
Attempts to delete the bucket named $bucket from your account. Returns true on success. If not successful, false is returned and $this->error is set with the error message received from Amazon.
Note: non-empty buckets cannot be deleted. This is a restriction (a good one) of Amazon.
object($bucket, $object)
Attempts to delete the object named $object in bucket $bucket. Returns true on success. False if the object could not be deleted.
directorySize($bucket, $prefix)
Returns the size, in bytes, of all the keys in bucket $bucket with prefix $prefix.
downloadObject($bucket, $object, $saveTo)
Downloads the object named $object from bucket $bucket and saves on the filesystem as $saveTo.
getBucketContents($bucket, $prefix, $delim, $marker)
Returns an array containing the contents of bucket $bucket. Please see the Amazon reference for an explanation of how $prefix, $delim, and $marker affect the results.
Returns an array containing the buckets accessible to your account.
getObject($bucket, $object)
Returns the contents of the object $object in bucket $bucket.
Note: since this loads the contents into memory, consider using downloadObject() for large files.
getObjectHead($bucket, $object)
Returns the HTTP header info for object $object in bucket $bucket.
getObjectInfo($bucket, $object)
Returns Amazon's meta information about object $object in bucket $bucket.
Searches the result of the current request for an error message. Returns true if none found. Otherwise, returns false and stores the error message in $this->_error.
objectExists($bucket, $object)
Returns true if object $object in bucket $bucket exists. False if it does not exist.
putObject($bucket, $object, $filename, $public, $disposition)
Stores the file $filename into bucket $bucket as object $object. If $public is true, the new object will be publicly accessible via the web at http://s3. amazonaws. com/$bucket/$object. If $disposition is set, the object will be stored with a special header to make the file download as an attachment named $disposition. This is useful if you want the file to have a different filename than its object name.
sendRequest($req, $params)
Sends the request specified by the array $req along with any additional params listed in the array $params.
Note: items in $req are sent as arguments to curl, while items in $params are sent in the query string.
Calculates a request signature using the algorithm specified by Amazon and the items in $req.
sortKeys($keys, $first)
Sorts the keys listed in $keys. If $first is null it sorts the keys alphabetically. If $first is "key", keys are sorted alphabetically followed by prefixes. If $first is "prefix", prefixes are sorted first then the keys. This is useful if you want to list your getBucketContents() results in a filesytem format. You can have files and directories intermixed (OS X style) or directories listed first (Windows style).

PHP-AWS 1.0 scripting tags: php-aws, development, keys, true, development tools, amazon services, ireturns, php aws, bucket, object. What is new in PHP-AWS 1.0 software script? - Unable to find PHP-AWS 1.0 news. What is improvements are expecting? Newly-made PHP-AWS 1.1 will be downloaded from here. You may download directly. Please write the reviews of the PHP-AWS. License limitations are unspecified.