Comments on: How To: Install PHP-Ming https://gofedora.com/how-to-install-phpming/ How Tos, Tutorials, Tips and Tricks Fri, 19 Jun 2015 15:19:58 +0000 hourly 1 https://wordpress.org/?v=4.9.4 By: Php Flash 5 Form Tutorial https://gofedora.com/how-to-install-phpming/comment-page-1/#comment-235 Sun, 30 Mar 2008 23:18:30 +0000 http://172.17.8.64/gofedora/?p=370#comment-235 Hey! I’ve been looking for a site that has some good information on Php Flash 5 Form Tutorial. I was searching around on Google and your post regarding How to install php-ming in Fedora caught my attention .. Good info thanks Sunday

]]>
By: Mike D https://gofedora.com/how-to-install-phpming/comment-page-1/#comment-233 Wed, 30 Nov -0001 00:00:00 +0000 http://172.17.8.64/gofedora/?p=370#comment-233 I might add in my case (centos5) I added a new text file ming.ini with content:

extension=ming.so

To directory /etc/php.d/
(then restart apache)

]]>
By: Jacek https://gofedora.com/how-to-install-phpming/comment-page-1/#comment-234 Wed, 30 Nov -0001 00:00:00 +0000 http://172.17.8.64/gofedora/?p=370#comment-234 Great tutorial! Thank you very much.
CentOS 5

]]>
By: Thomas https://gofedora.com/how-to-install-phpming/comment-page-1/#comment-236 Wed, 30 Nov -0001 00:00:00 +0000 http://172.17.8.64/gofedora/?p=370#comment-236 Install works, but production fails
However: once I instantiate a movie like so :

$m = new SWFMovie();
$m->setBackground(0xff, 0xff, 0xff);
$m->setDimension(6000, 4000);

$i = $m->add($p);
$i->setDepth(1);
$i->moveTo(-500,2000);
$i->setName("box");

$m->add(new SWFAction("/box.x += 3;"));
$m->nextFrame();
$m->add(new SWFAction("gotoFrame(0); play();"));
$m->nextFrame();

header('Content-type: application/x-shockwave-flash');
$m->output();

PHP complains on the last line about a syntax error.:
[Wed Apr 30 14:28:26 2008] [error] [client 127.0.0.1] PHP Fatal error: SWFMovie::output() [function.SWFMovie-output]: \n/\n^\nLine 1: Reason: ‘syntax error’\n in /usr/plotus/people/htdocs/js/widgets/ming2.html on line 39

what do we do now?
T

]]>
By: kulbirsaini https://gofedora.com/how-to-install-phpming/comment-page-1/#comment-237 Wed, 30 Nov -0001 00:00:00 +0000 http://172.17.8.64/gofedora/?p=370#comment-237 >> $m->output();

I think $m->save(‘file.swf’) is the right function to use.
An example working code.

$s = new SWFShape();
$s->setLine(40, 0x7f, 0, 0);
$s->setRightFill($s->addFill(0xff, 0, 0));
$s->movePenTo(200, 200);
$s->drawLineTo(200, 200);
$s->drawLineTo(1200, 600);
$s->drawCurveTo(1200, 600, 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->save('test.swf');

BTW, I edited your comment so that it looks good 🙂
Hope this example helps.

]]>
By: Jun Pan https://gofedora.com/how-to-install-phpming/comment-page-1/#comment-238 Wed, 30 Nov -0001 00:00:00 +0000 http://172.17.8.64/gofedora/?p=370#comment-238 Thanks kulbirsaini!
Your post saved me tons of time.
Also thank Google for digging your post out for me 🙂

]]>
By: matteoosh https://gofedora.com/how-to-install-phpming/comment-page-1/#comment-239 Wed, 30 Nov -0001 00:00:00 +0000 http://172.17.8.64/gofedora/?p=370#comment-239 i spent 5 hours on binding ming with php – eventually your tutorial helped me to figure it out properly what was wrong. 😀 thnks a lot.
M.

]]>
By: visitor https://gofedora.com/how-to-install-phpming/comment-page-1/#comment-240 Wed, 30 Nov -0001 00:00:00 +0000 http://172.17.8.64/gofedora/?p=370#comment-240 The package for installa php4-ming extension don’t exist in repository of Ubuntu. What i do?
closets

]]>
By: kulbirsaini https://gofedora.com/how-to-install-phpming/comment-page-1/#comment-241 Wed, 30 Nov -0001 00:00:00 +0000 http://172.17.8.64/gofedora/?p=370#comment-241 its an archived package and will not be found in the ubuntu archive… Download from the link mentioned in the howto.

]]>