Cannot instantiate non-existent class: swfshape
Lord Hasenpfeffer <[email protected]> Tue, 21 Oct 2003 23:33:20 -0500
| Newsgroups | gmane.comp.web.ming.general |
|---|---|
| Message-ID | <[email protected]> |
OK, since my initial post I have discovered this webpage:
http://ming.sourceforge.net/install.html
Which provides a link for downloading a pre-compiled php_ming.so file.
Since the source for this .so file won't compile, I decided to try that
instead.
With "ming.h" now in /usr/include
and "libming.so" now in /usr/lib
and "php_ming.so" now in /usr/lib/php4
and "extension=php_ming.so" no in /etc/php.ini
and "Apache w/ PHP" stopped and restarted (as module, not CGI)...
...I am able to browse PHP scripts with ming-specific code in them but
they don't do anything.
The following:
<?php
echo("<p>MING-TEST-1.PHP START</p>");
$s = new SWFShape();
echo($s);
$s->setLine(20, 0xff, 0, 0);
$s->drawLineTo(400, 0);
$s->drawLineTo(400, 400);
$s->drawLineTo(0, 400);
$s->drawLineTo(0, 0);
echo("<p>MING-TEST-1.PHP STOP</p>");
?>
yields only the following in my browser window:
MING-TEST-1.PHP START
Object
MING-TEST-1.PHP STOP
The fact that "echo($s);" results in the word "Object" being displayed
proves to me that I now am able to instantiate the SWFShape class but
why does nothing instead of something occur now?
Myke
--
-================================-
Windows...It's rebootylicious!!!
-================================-