Re: exec - Directory (including " ") and A LOTS of parameters
From: Paul Barfoot (Paul_at_theglobalfamily.fsworld.co.uk)
Date: 10/28/04
- Previous message: Paul Barfoot: "Re: send 1 dim array as hidden type via form"
- In reply to: Mira Jungholdt: "exec - Directory (including " ") and A LOTS of parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 28 Oct 2004 10:50:42 +0100
Hi Mira
To start with try using the short directory path to your executable. I
created a folder "x x" on my C drive and then checked its short filename
using dir /x x* in the parent directory to show that my folder was called
XX014B~1. That will get rid of 1 set of " ".
Could you also use / instead of \ in the path? Or am I thinking of something
else?
I'm not sure that you will be able to do what you want as this appears in
the PHP help file for each of the methods of executing an external command:
"Note that if you start a program using this function and want to leave it
running in the background, you have to make sure that the output of that
program is redirected to a file or some other output stream or else PHP will
hang until the execution of the program ends."
-- Paul Barfoot The Global Family Website is at: http://tgf.athnic.com "Mira Jungholdt" <PhX-X@gmx.net> wrote in message news:c1c895cc.0410220441.16095f69@posting.google.com... > Hi! > > I try to make following command work: > > C:\x x\daExe.exe "asdf asdf" "jkl jkl" > > As you can see, the directory has space in one of its folder and the > arguments too. > > now i try following commands: > exec("\"c:\x x\daExe.exe\" \"asdf asdf\" \"jkl jkl\""); > exec('\"c:\x x\daExe.exe\" \"asdf asdf\" \"jkl jkl\"'); > ... > > I look on php.net but i havn't found anything that could help. > > has anybody a clou? > > phx
- Previous message: Paul Barfoot: "Re: send 1 dim array as hidden type via form"
- In reply to: Mira Jungholdt: "exec - Directory (including " ") and A LOTS of parameters"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|