This is a discussion on Exec() within the PHP Language forums, part of the PHP Programming Forums category; I am trying to run a MS word Macro through PHP so basically when i click on a button, i ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am trying to run a MS word Macro through PHP so basically when i
click on a button, i would like to run the macro. I thought maybe the following command would work but it doesnt do anything when i click on the button <?php exec("winword.exe /mMyMacro"); ?> Any insight is greatly appreciated Chintan |
|
|||
|
TheGuru69 wrote: > I am trying to run a MS word Macro through PHP so basically when i > click on a button, i would like to run the macro. I thought maybe the > following command would work but it doesnt do anything when i click on > the button > > <?php > > exec("winword.exe /mMyMacro"); > > > ?> Where is your Web Server running? Locally on your windows box? Or remotely. Remember, PHP runs on the server, so if you're not running a server on your windows box, I would suggest using Javascript. Ken |
|
|||
|
"TheGuru69" <cspatel@gmail.com> wrote in message
news:1110818551.271355.75590@o13g2000cwo.googlegro ups.com... I am running the PhP server in my windows box and this is the warning it gives me Warning: exec() [function.exec]: Unable to fork [winword.exe /Macro4] in c:\Inetpub\wwwroot\PHP\********\test.php on line 9 Either the path to the program is wrong, or the web server doesn't have access to the desktop. |