note 91572 added to function.exec
| From: | pavanphp at osu1 dot php dot net | Date: | Wed, 17 Jun 2009 13:37:44 +0000 |
| Subject: | note 91572 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-156973@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
<?
#code for pdf to swf using pdf2swf software
#this code works 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
?>
----
Server IP: 59.162.86.33
Probable Submitter: 61.8.156.130
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- https://master.php.net/note/edit/91572
Del: integrated -- https://master.php.net/note/delete/91572/integrated
Del: useless -- https://master.php.net/note/delete/91572/useless
Del: bad code -- https://master.php.net/note/delete/91572/bad+code
Del: spam -- https://master.php.net/note/delete/91572/spam
Del: non-english -- https://master.php.net/note/delete/91572/non-english
Del: in docs -- https://master.php.net/note/delete/91572/in+docs
Del: other reasons-- https://master.php.net/note/delete/91572
Reject -- https://master.php.net/note/reject/91572
Search -- https://master.php.net/manage/user-notes.php