note 91574 modified in class.com by danbrown

From: Date: Wed, 17 Jun 2009 13:52:26 +0000
Subject: note 91574 modified in class.com by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-156978@lists.php.net to get a copy of this message
Here I Am describing a Program from which you can connect any exe(software) using COM component. pdf2swf is a software for converting PDf to SWF files. This is best example for WScript.Shell <?php #code for pdf to swf using pdf2swf software #this codeworks in windows environment. ## Important Parameters $software_path ="C:\\SWFTools\\pdf2swf" ; $pdf_path ="C:\\SWFTools\\abcd.pdf" ; $argument = "-o"; $swf_output ="C:\\SWFTools\\abcd.swf" ; #actual code $cmd =" $software_path $pdf_path $argument $swf_output"; $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run("cmd /C $cmd ", 0, true); # 0 for command prompt invisible mode # 3 for visible ?> --was-- Here I Am describing a Program from which you can connect any exe(software) using COM component. pdf2swf is a software for converting PDf to SWF files. This is best example for WScript.Shell <? #code for pdf to swf using pdf2swf software #this codeworks in windows environment. ## Important Parameters $software_path ="C:\\SWFTools\\pdf2swf" ; $pdf_path ="C:\\SWFTools\\abcd.pdf" ; $argument = "-o"; $swf_output ="C:\\SWFTools\\abcd.swf" ; #actual code $cmd =" $software_path $pdf_path $argument $swf_output"; $WshShell = new COM("WScript.Shell"); $oExec = $WshShell->Run("cmd /C $cmd ", 0, true); # 0 for command prompt invisb\ible mode # 3 for visible ?> http://php.net/manual/en/class.com.php

« previous php.notes (#156978) next »