[PHP] system() function

2002-10-29 Thread Don Hicks
Hello,

I'm running php on a Win2000 server.

I also have an MS Access 97 database on the server.

I want to tell the database to execute a macro on an as needed basis by
running a php system() function, but I'm having difficulty making the action
happen.

I suspect it's my coding.

I'm currently putting the following into my php:

system(C:\Program Files\Microsoft Office\Office\MSACCESS.EXE
C:\Inetpub\wwwroot\DATABASENAME.mdb /x MACRONAME)

The server shows that MS Access is running a process, but it never finishes
(seems to hang up).

Does anyone have advice for me?

Don Hicks



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] system() function

2002-10-29 Thread Jonathan Sharp
E... try COM maybe...

-js


Don Hicks wrote:
 Hello,
 
 I'm running php on a Win2000 server.
 
 I also have an MS Access 97 database on the server.
 
 I want to tell the database to execute a macro on an as needed basis by
 running a php system() function, but I'm having difficulty making the action
 happen.
 
 I suspect it's my coding.
 
 I'm currently putting the following into my php:
 
 system(C:\Program Files\Microsoft Office\Office\MSACCESS.EXE
 C:\Inetpub\wwwroot\DATABASENAME.mdb /x MACRONAME)
 
 The server shows that MS Access is running a process, but it never finishes
 (seems to hang up).
 
 Does anyone have advice for me?
 
 Don Hicks
 
 
 




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] system() function

2001-03-12 Thread Daniel Lynn

I'm having an interesting problem. I'm running on an NT machine. I'm
using the function:

system("F:/full/path/program");

I've tried it using all kinds of forms of forward and back slashing,
doesn't seem to matter... oddly enough, if I copy the text out from
between the quote and paste it into a command window it runs fine. I
also tried using the exec command, but no luck. The intiger return
variable is -1, which I assume to mean it failed...

I'm completely lost now so if anyone has any ideas, input, or longshots,
I'd be happy to hear them. Thanks

-Daniel


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]