<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That is an error returned by the MogileFS tracker. You need to first
make sure you've setup the class and domain using mogadm.<br>
<br>
mogadm domain add testdomain<br>
mogadm class add testdomain testclass<br>
<br>
Best,<br>
<br>
Erik<br>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:drpr0ctologist@gmail.com">drpr0ctologist@gmail.com</a> wrote:
<blockquote
 cite="mid:6d9a2c350708200309l114d7783l9c2cdd7185107d47@mail.gmail.com"
 type="cite">
  <div>I'm trying to decide whether to use the MogileFS.class.bin php
file:</div>
  <div><a moz-do-not-send="true"
 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 moz-do-not-send="true" 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="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"><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-&gt;doRequest('CREATE_OPEN', Array)
#1 /www/htdocs/fs.php(396): MogileFS-&gt;setResource('wtf', Resource id
#4, 12) #2 /www/htdocs/fstest.php(19): MogileFS-&gt;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>&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("mogilefs-class.php");<br>
  <br>
// Usage Example:<br>
$mfs = new MogileFS('testdomain', 'testclass', 'tcp://127.0.0.1');<br>
//$mfs-&gt;setDebug(10);<br>
$start = microtime(true);<br>
$mfs-&gt;set('wtf',&nbsp; "who is this?");<br>
printf("EXISTS: %d\n", $mfs-&gt;exists('wtf'));<br>
print "&lt;br&gt;GET: [" . $mfs-&gt;get('wtf') . "]\n";<br>
$mfs-&gt;delete('wtf');
  <br>
$stop = microtime(true);<br>
printf("&lt;br&gt;&lt;br&gt;%.4f\n", $stop - $start);</p>
  <p>?&gt;<br>
&lt;/body&gt;&lt;/html&gt;</p>
  <p>&nbsp;</p>
  </div>
  </div>
</blockquote>
<br>
</body>
</html>