Exec()

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-14-2005
TheGuru69
 
Posts: n/a
Default Exec()

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

Reply With Quote
  #2 (permalink)  
Old 03-14-2005
Ken Robinson
 
Posts: n/a
Default Re: Exec()


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

Reply With Quote
  #3 (permalink)  
Old 03-14-2005
TheGuru69
 
Posts: n/a
Default Re: Exec()

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

thanks for your prompt reply

Chintan

Reply With Quote
  #4 (permalink)  
Old 03-14-2005
Chung Leong
 
Posts: n/a
Default Re: Exec()

"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.


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:16 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0