I'm running wampserver with php 4.3.8 on windows xp home.
I followed this:
INSTRUCTIONS:
for usage of the dwg to swf convertor:
- copy 'php_dwgtoswf.dll' to your php extensions-folder '/php/extensions/'
- add an entry to php.ini:
-> find the section in php.ini where the extensions are defined
-> add a line 'extension=php_dwgtoswf.dll'
AVAILABLE METHODS:
dwg_to_swf(
$infile, // dwg/dxf
$outfile, // swf
$width, // swf-width
$height, // swf-height
$layout, // selected 'dwg-layout' (int, 0-based)
$penwidths, // penwidths[255], array containing penwidths (twips).
$mode, // one of predefined constants (see below)
$R, $G, $B // RGB-colors (range 0 - 0xFF)
);
int dwg_num_layers($infile);
array dwg_get_layers($infile);
int dwg_num_layouts($infile);
array dwg_get_layouts($infile);
DWG_TO_SWF_COLOR
DWG_TO_SWF_MONOCHROME
DWG_TO_SWF_BACKGROUND_BLACK
DWG_TO_SWF_BACKGROUND_WHITE
But when I try to use dwg_to_swf (), I get the error:
Fatal error: Call to undefined function: dwg_to_swf() in...
Apart from this, I don't get another error.
How do I know if the .dll is installed correclty?
I changed the extension_dir in the php.ini to:
extension_dir = "C:\wamp\php4\extensions"