Page 1 of 1

ming

Posted: Thu Dec 15, 2005 1:01 am
by amitshetye
hi all,

i had written one code for converting the image to swf, the code is as follows..

Code: Select all

<?php
  $m = new SWFMovie();
  $m->setDimension(640, 480);
  $m->add(new SWFBitmap(fopen("black.jpg", "rb")));

  header('Content-type: application/x-shockwave-flash');
  $m->output();
?>
but it is giving me the following error :

Fatal error: Cannot instantiate non-existent class: swfmovie

so what should i do??

and how to chek whether the ming is active or not?? and which version of php does support the ming??



regards

amit

Posted: Thu Dec 15, 2005 1:51 am
by saumya

Code: Select all

phpinfo();
through that you will know what are the libraries installed and active to use.