make
andmake install
successfully. As the messagemake install
says, we should not forget to addextension=php_ming.so
to php.ini (andsomething not mentioned, restart our web server). I did those
things and I could later use the code shown in the next
section.
Debian-based distros like Corel Linux or Storm Linux. I haven’t
tried (even I have never installed any of them). I would be
glad if someone can inform me about it.
Testing the Installation
this code:
<?php
// create movie and set parameters
$movie=new SWFMovie();
$movie->setBackground(0xee,0xee,0xff); // nice light blue
$movie->setDimension(800,600);
// draw rectangles
for($c=0;$c<5;$c++)
{ $shape=new SWFShape();
// set line width 20, with blue shade
$shape->setLine(20,0x00,0x00,$c*50);
$offset=$c*20;
$shape->movePenTo(100+$offset,100+$offset);
$shape->drawLineTo(700-$offset,100+$offset);
$shape->drawLineTo(700-$offset,500-$offset);
$shape->drawLineTo(100+$offset,500-$offset);
$shape->drawLineTo(100+$offset,100+$offset);
// add to canvas
$movie->add($shape);
}
// send output
header("Content-Type:application/x-shockwave-flash");
$movie->output();
?>
there may be something wrong with the installation.
object-oriented feature of PHP. Please consult the
documentation for further information. This article has brought
you to the start, so you can now move on with your own
movies.
When not playing the music, Iman S. H. Suyoto probably plays around with
software development tools. He currently works as a trainer for web
development technologies in World
Wide Web Institute Indonesia. He has published several articles in
MIKRODATA, an Indonesian computer
and programming publication. In 1997, he started doing web development.
He has been using PHP since 2000.