Re: Running Outside Apps.

From: Date: Mon, 12 Mar 2001 04:20:08 +0000
Subject: Re: Running Outside Apps.
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-689@lists.php.net to get a copy of this message
Oops, forgot to CC the list with my response, and I didn't want anyone to miss out on my pearls of wisdom.. ;-) > I am trying to have my php-gtk script run an outside application. I have > tried using exec and system commands to do this and it will open up the > outside program, but it says it is missing files. When I run the program > manually though it works. Can anyone help me on this? My guess would be that you need to change the working directory to be the directory where your other app is before you run it, as it's expecting some files to be available that aren't. Try something like: chdir ('c:\Program Files\My App') or die ("Unable to change directory.\n"); exec ('myapp.exe'); If you're lucky it might work... :-) -- Michael.

« previous php.gtk (#689) next »