MogileFS PHP Extension

About MogileFS

MogileFS is a open source distribued filesystem. www.Danga.com/MogileFS/

Maintainers : AHSEIN Khalid < >, EREN Timu < >
License : BSD License

Description
This extension allows you to communicate with the MogileFS tracker.
Mogilefs.php is a Class to use mogilefs storage functions easily.

Dependencies
Release >= 0.5 requires the Neon library to put file with WEBDAV.
Neon can be downloaded from: http://www.webdav.org/neon/

Version

Release Date

Download

0.7.4

2008-04-25

mogilefs-php-0.7.4.tar.gz

A special thanks to Jürgen Krieger

INSTALL MOGILEFS

$ phpize
$ ./configure --with-mogilefs
# make install

FUNCTIONS

EXAMPLE

<?php

/****
  Example using mogilefs object API
****/
$mg = new MogilefsClient();
$mg->connect('192.168.101.1'6001'myDomain');
$mg->put('/example/file.jpg''my_key''my_class');
$paths $mg->get_paths('my_key');
$mg->close();


/****
  Example using mogilefs procedural API
****/
$mg_object mogilefs_connect('192.168.101.1'6001'myDomain');
mogilefs_put($mg_object'/example/file.jpg''my_key''my_class');
$paths mogilefs_get_paths($mg_object'my_key');
mogilefs_close($mg_object);

?>

SEE ALSO

WebDav PHP Extension
http://php-webdav.pureftpd.org