I am trying to use MING on a server hosted by my ISP. I am trying to figure out the syntax for installing the MING component as a PHP Module by adding an .htaccess file with pointers to the module.
I am not having much success. the php_ming.so is in the same dir as the php file and the htaccess file and I get the error:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
the .htaccess fil looks like this:
enable_dl on
extension_dir=/home/xxx/public_html/temp
extension=php_ming.so
the php file looks like this:
<?
dl('php_ming.so');
$s = new SWFShape();
$s->setLine(40, 0x7f, 0, 0);
$s->setRightFill($s->addFill(0xff, 0, 0));
$s->movePenTo(200, 200);
$s->drawLineTo(6200, 200);
$s->drawLineTo(6200, 4600);
$s->drawCurveTo(200, 4600, 200, 200);
$m = new SWFMovie();
$m->setDimension(6400, 4800);
$m->setRate(12.0);
$m->add($s);
$m->nextFrame();
header('Content-type: application/x-shockwave-flash');
$m->output();
?>
anyone have any ideas?