<div>I'm trying to decide whether to use the MogileFS.class.bin php file:</div>
<div><a href="http://lists.danga.com/pipermail/mogilefs/attachments/20070630/995c3387/MogileFS.class.bin">http://lists.danga.com/pipermail/mogilefs/attachments/20070630/995c3387/MogileFS.class.bin</a></div>
<div> </div>
<div>Or the MogileFS PHP Extension here:</div>
<div><a href="http://www.capoune.net/mogilefs/">http://www.capoune.net/mogilefs/</a></div>
<div> </div>
<div>Do you guys have any feedback on which is better to use?</div>
<div> </div>
<div> </div>
<div>Also, I tried using MogileFS.class.bin and am getting this error message:</div>
<div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><strong>Fatal error: Uncaught exception 'Exception' with message 'MogileFS::doRequest ERR unreg_class unreg_class' in /www/htdocs/fs.php:213 Stack trace: #0 /www/htdocs/fs.php(353): MogileFS->doRequest('CREATE_OPEN', Array) #1 /www/htdocs/fs.php(396): MogileFS->setResource('wtf', Resource id #4, 12) #2 /www/htdocs/fstest.php(19): MogileFS->set('wtf', 'who is this?') #3 {main} thrown in /www/htdocs/fs.php on line 213
</strong></blockquote>
<div>
<p>Here's the script I tried running:</p>
<p><html><head><title>PHP Test</title></head><br><body><br><?php</p>
<p>include("mogilefs-class.php");<br><br>// Usage Example:<br>$mfs = new MogileFS('testdomain', 'testclass', 'tcp://127.0.0.1');<br>//$mfs->setDebug(10);<br>$start = microtime(true);<br>
$mfs->set('wtf', "who is this?");<br>printf("EXISTS: %d\n", $mfs->exists('wtf'));<br>print "<br>GET: [" . $mfs->get('wtf') . "]\n";<br>$mfs->delete('wtf');
<br>$stop = microtime(true);<br>printf("<br><br>%.4f\n", $stop - $start);</p>
<p>?><br></body></html></p>
<p> </p></div></div>