Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

readme.md

Cloud Files Gallery

A small PHP/mySQL application for uploading and displaying image galleries using Rackspace Cloud Files.

I built this simple gallery app as an exercise to become familiar with Rackspace's PHP Open Cloud API and decided to share it in the hopes it may help somebody. This is only meant to be an example; it's not meant to be put into production on your website unless you add some integrity checks and beef up security. I'm sharing this as-is, without warranty of any kind. Use at your own risk. The code is commented and should be easy to follow. Please don't ask for help with this, I'm just way too busy to offer any meaningful support. Thanks. :)

What It Does

  • Creates photo galleries using Rackspace Cloud Files containers and a mySQL database
  • Resizes and uploads images to Cloud Files containers
  • Recursively deletes image galleries and containers
  • Creates private and public CDN containers with temporary URLs; perfect for membership sites and digital downloads
  • Uses Bootstrap 3.3, jQuery and DropZone (all via CDN)

Requirements

This also uses ezSQL for mySQL and ImageMagick for image uploads and manipulation, both of which can be easily swapped out for your own. If you're not using ImageMagick, update assets/php/upload.php with your own upload code.

Installation

Update: I created this companion blog post, which is more detailed than the instructions below.

  1. Download the .zip file
  2. Create a new mySQL database named open-cloud and import the tables in open-cloud.sql
  3. Install the php-opencloud library into assets/plugins/
  4. Download ezSQL into assets/plugins/ (or use your own)
  5. Open assets/config.php and edit accordingly
  6. Visit index.php in your browser to start creating galleries!

If you're using MAMP Pro, check out how to easily install ImageMagick with MAMP Pro 3.

About

A small PHP/mySQL application for uploading and displaying image galleries using Rackspace Cloud Files

Resources

Releases

No releases published

Packages

No packages published