<div>I&#39;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>&nbsp;</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>&nbsp;</div>
<div>Do you guys have any feedback on which is better to use?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Also, I tried using MogileFS.class.bin&nbsp;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 &#39;Exception&#39; with message &#39;MogileFS::doRequest ERR unreg_class unreg_class&#39; in /www/htdocs/fs.php:213 Stack trace: #0 /www/htdocs/fs.php(353): MogileFS-&gt;doRequest(&#39;CREATE_OPEN&#39;, Array) #1 /www/htdocs/fs.php(396): MogileFS-&gt;setResource(&#39;wtf&#39;, Resource id #4, 12) #2 /www/htdocs/fstest.php(19): MogileFS-&gt;set(&#39;wtf&#39;, &#39;who is this?&#39;) #3 {main} thrown in /www/htdocs/fs.php on line 213
</strong></blockquote>
<div>
<p>Here&#39;s the script I tried running:</p>
<p>&lt;html&gt;&lt;head&gt;&lt;title&gt;PHP Test&lt;/title&gt;&lt;/head&gt;<br>&lt;body&gt;<br>&lt;?php</p>
<p>include(&quot;mogilefs-class.php&quot;);<br><br>// Usage Example:<br>$mfs = new MogileFS(&#39;testdomain&#39;, &#39;testclass&#39;, &#39;tcp://127.0.0.1&#39;);<br>//$mfs-&gt;setDebug(10);<br>$start = microtime(true);<br>
$mfs-&gt;set(&#39;wtf&#39;,&nbsp; &quot;who is this?&quot;);<br>printf(&quot;EXISTS: %d\n&quot;, $mfs-&gt;exists(&#39;wtf&#39;));<br>print &quot;&lt;br&gt;GET: [&quot; . $mfs-&gt;get(&#39;wtf&#39;) . &quot;]\n&quot;;<br>$mfs-&gt;delete(&#39;wtf&#39;);
<br>$stop = microtime(true);<br>printf(&quot;&lt;br&gt;&lt;br&gt;%.4f\n&quot;, $stop - $start);</p>
<p>?&gt;<br>&lt;/body&gt;&lt;/html&gt;</p>
<p>&nbsp;</p></div></div>