#native_company# #native_desc#

Getting Started with PHP/Ming Page 3

By Iman S. H. Suyoto
on August 10, 2001

After the adjustments, I could make and
make install successfully. As the message
make install says, we should not forget to add
extension=php_ming.so to php.ini (and
something not mentioned, restart our web server). I did those
things and I could later use the code shown in the next
I don’t know whether we should do these tasks under other
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

After we have successfully installed PHP/Ming, we can try
this code:


// create movie and set parameters

$movie=new SWFMovie();

$movie->setBackground(0xee,0xee,0xff);  // nice light blue


// draw rectangles


$shape=new SWFShape();

// set line width 20, with blue shade








// add to canvas



// send output




We should be able see five rectangles with blue shades. If not,
there may be something wrong with the installation.
Ending Words
The PHP binding for Ming relies heavily on the
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
Happy coding!

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.