PHP-AWS PHP script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: list
  • Last update:
  • Platform: Windows / Linux / BSD / Solaris
  • Language: PHP
  • Price:Other Free / Open So
  • Company: tylerhall (View more)

PHP-AWS script description:




Publisher review:
PHP-AWS is a collection of PHP classes that let you take advantage of Amazon's web services platform (AWS). PHP-AWS 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)
Methods

__construct($key, $secret)

The S3 constructor initializes $this->_hasher using Amazon key and secret key you supply.

base64($str)

Returns the base-64 encoded version of string $str.

bucketExists($bucket)

Returns true if $bucket is one of your available buckets. If false is returned, the bucket may potentially exist for another user.

createBucket($bucket)

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.

deleteBucket($bucket)

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.

deleteObject($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.

getBuckets()

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.

isOk($result)

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.

signature($req)

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 is a PHP script for Development Tools scripts design by tylerhall. It runs on following operating system: Windows / Linux / BSD / Solaris.

Operating system:
Windows / Linux / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5