how to tranparently deal with MogileFS with php and nginx
Ian M. Evans
ianevans at digitalhit.com
Mon Sep 3 04:24:47 UTC 2012
As I'm working on this new project based on image uploads, my brains
buzzing with all the stuff I'm reading to try and make the project
scalable from day one. As I said in another thread, it's much calmer for
me to ask now than when I'm screaming "Help my server's melting"
Seeing as there's a MogileFS module for nginx, I thought it would be th
best option for seamlessly adding storage if we're successful. I've been
looking at the docs (http://www.grid.net.ru/nginx/mogilefs.en.html) and
I'm curious how I can make the operations more transparent and seamless
for php operations.
Uisng this example locations, if I referenced an image in a webpage as
/download/abc.jpg it would serve up the file referenced with the abc.jpg.
And I see they have an example location of /upload for adding/deleting
files. Is there a special way that php has to add the files to that
location, since it's been set up on a web server? While the /download
location seems pretty easy to deal with an a webserver, I'm wondering if
there's a way for PHP to interact with the adding, deleting, etc of files
in a way that's more like dealing with a local filesystem.
Thanks for any advice.
More information about the nginx