Hi - I just installed Ming: http://ming.sourceforge.net/
and yet, er, it didn't seem to install as I got the following message:
Warning: ming: Unable to initialize module Module compiled with module API=20010901, debug=0, thread-safety=0 PHP compiled with module API=20020429, debug=1, thread-safety=0 These options need to match in /var/www/html/test/trying.php on line 2
I was using some test code from the ming site:
dl('php_ming.so');
$f = new SWFFont("Techno.fdb" );
$t = new SWFText();
$t->setFont($f);
$t->setColor(0xff, 0xff, 0);
$t->setHeight(60);
$t->addString("fnar! fnar!" );
$m = new SWFMovie();
$m->setDimension(320, 240);
$i = $m->add($t);
$i->moveTo(160-$t->getWidth("fnar! fnar!" )/2, 120+$t->getAscent()/2);
header('Content-type: application/x-shockwave-flash');
$m->output();
I had compiled it as a module, as per the instructions:
http://ming.sourceforge.net/install.html
One odd thing was that it wouldn't instantiate the class at all when I didn't put that dl() line at the top - even though I added it as an extension in the php ini file. When I used php-configure --extension-dir to find the extension dir, it gave me some weird directory. I put php_ming.so in there but quickly got an error message when I ran the script telling me to move it to a different directory. I did, and the message at the top is as far as I have gotten. Is the ming library corrupted? Any suggestions? I'm kind of new at this stuff. Thanks.
p.s. - I did chmod the php_ming.so file to 0777