Execute a windows program from an anchor tag
From: gf (gfraley5_at_earthlink.net)
Date: 02/19/04
- Next message: Pedro Graca: "Re: Execute a windows program from an anchor tag"
- Previous message: John Dunlop: "Re: logging time spent on my website"
- Next in thread: Pedro Graca: "Re: Execute a windows program from an anchor tag"
- Reply: Pedro Graca: "Re: Execute a windows program from an anchor tag"
- Reply: Doug Hutcheson: "Re: Execute a windows program from an anchor tag"
- Reply: Chung Leong: "Re: Execute a windows program from an anchor tag"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 19 Feb 2004 21:11:03 GMT
I believe I am close but I have spent several hours investigating this and
can't understand why it won't work. I have tried exec, system, and settled
on popen from reading various notes on the subject. I am wanting to launch
a file editor when I click on a link. This is strictly an internal
application so I don't need to worry about escaping shell/args. This is
what seems as if it should work, however it doesn't. This is on XP, latest
Apache 1.3.29 and PHP. The logic makes it into the "if" test and the file
exists. Thanks.
if (chdir("C:\\Program Files\\TextPad 4")) {
$cmd = "start \"textpad.exe\" x:\\web\\program.php";
pclose(popen($cmd, "r"));
}
- Next message: Pedro Graca: "Re: Execute a windows program from an anchor tag"
- Previous message: John Dunlop: "Re: logging time spent on my website"
- Next in thread: Pedro Graca: "Re: Execute a windows program from an anchor tag"
- Reply: Pedro Graca: "Re: Execute a windows program from an anchor tag"
- Reply: Doug Hutcheson: "Re: Execute a windows program from an anchor tag"
- Reply: Chung Leong: "Re: Execute a windows program from an anchor tag"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]