<!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> </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> </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="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->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>
</blockquote>
<br>
</body>
</html>