Re: [PHP] Re: Problems with exec() on windows

2009-03-20 Thread Shawn McKenzie
Kyohere Luke wrote: > You might have something there - never really thought about how windows > forms the 8.3 names... & not many resources online about it ... > > The actual path is "c:\Program File\Gammu 1.23.91\bin\gammu.exe" > I'd used "c:\Progra~1\Gammu~1\bin\gammu.exe" You take the first 6

RE: [PHP] Re: Problems with exec() on windows

2009-03-20 Thread bruce
... -Original Message- From: l...@beyonic.com [mailto:l...@beyonic.com]on Behalf Of Kyohere Luke Sent: Thursday, March 19, 2009 11:48 PM To: Shawn McKenzie Cc: php-general@lists.php.net Subject: Re: [PHP] Re: Problems with exec() on windows You might have something there - never real

Re: [PHP] Re: Problems with exec() on windows

2009-03-20 Thread George Larson
I've skimmed some of thread, but I have not been following closely so please disregard if I'm just rambling. However, I've worked with lots of software on DOS boxen that couldn't handle long file names. If they also choke on the tildes then I usually just write a batch file that calls the full pa

Re: [PHP] Re: Problems with exec() on windows

2009-03-20 Thread haliphax
On Fri, Mar 20, 2009 at 1:47 AM, Kyohere Luke wrote: > You might have something there - never really thought about how windows > forms the 8.3 names... & not many resources online about it ... > > The actual path is "c:\Program File\Gammu 1.23.91\bin\gammu.exe" > I'd used "c:\Progra~1\Gammu~1\bin\

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
r with '' ie double/single > quotes... > >> > >> > >> > >> -Original Message- > >> From: Kyohere Luke [mailto:l...@beyonic.com] > >> Sent: Thursday, March 19, 2009 10:18 AM > >> To: Bastien Koert > >> Cc: Shaw

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Frank Stanovcak
"Kyohere Luke" wrote in message news:9bc423c50903191018k3c783213l4929cf2878e98...@mail.gmail.com... > Eventually settled for getting rid of the spaces in the path. That worked. > Thanks. > Luke > > On Thu, Mar 19, 2009 at 8:06 PM, Bastien Koert wrote: > >> >> >> On Thu, Mar 19, 2009 at 12:48 PM

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Shawn McKenzie
gt; if you're going to deal with file/pathnames in windows/linux.. you're going >> to have to encapsulate them with "" or with '' ie double/single quotes... >> >> >> >> -Original Message- >> From: Kyohere Luke [mailto:l...

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
single quotes... > > > > -Original Message- > From: Kyohere Luke [mailto:l...@beyonic.com] > Sent: Thursday, March 19, 2009 10:18 AM > To: Bastien Koert > Cc: Shawn McKenzie; php-general@lists.php.net > Subject: Re: [PHP] Re: Problems with exec() on windows > &g

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
single quotes... > > > > -Original Message- > From: Kyohere Luke [mailto:l...@beyonic.com] > Sent: Thursday, March 19, 2009 10:18 AM > To: Bastien Koert > Cc: Shawn McKenzie; php-general@lists.php.net > Subject: Re: [PHP] Re: Problems with exec() on windows > &g

RE: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread bruce
10:18 AM To: Bastien Koert Cc: Shawn McKenzie; php-general@lists.php.net Subject: Re: [PHP] Re: Problems with exec() on windows Eventually settled for getting rid of the spaces in the path. That worked. Thanks. Luke On Thu, Mar 19, 2009 at 8:06 PM, Bastien Koert wrote: > > > On Thu, Mar 19

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
Eventually settled for getting rid of the spaces in the path. That worked. Thanks. Luke On Thu, Mar 19, 2009 at 8:06 PM, Bastien Koert wrote: > > > On Thu, Mar 19, 2009 at 12:48 PM, Kyohere Luke wrote: > >> Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has >> spaces in it

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Shawn McKenzie
Kyohere Luke wrote: > Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has > spaces in it > Haliphax, thanks for your comments. I tried escapeshellarg() to no end. > > I'm exploring your reply regarding proc_open, but how exactly does proc_open > separate the arguments from

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
Eventually settled for getting rid of the spaces in the path. That worked. Thanks. Luke On Thu, Mar 19, 2009 at 8:06 PM, Bastien Koert wrote: > > > On Thu, Mar 19, 2009 at 12:48 PM, Kyohere Luke wrote: > >> Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has >> spaces in it

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Bastien Koert
On Thu, Mar 19, 2009 at 12:48 PM, Kyohere Luke wrote: > Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has > spaces in it > Haliphax, thanks for your comments. I tried escapeshellarg() to no end. > > I'm exploring your reply regarding proc_open, but how exactly does > pr

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has spaces in it Haliphax, thanks for your comments. I tried escapeshellarg() to no end. I'm exploring your reply regarding proc_open, but how exactly does proc_open separate the arguments from the command? Unless i'm mistak

Re: [PHP] Re: Problems with exec() on windows

2009-03-19 Thread Kyohere Luke
Thanks, but I tried this. Doesn't work because the path\to\gammu.exe has spaces in it Haliphax, thanks for your comments. I tried escapeshellarg() to no end. I'm exploring your reply regarding proc_open, but how exactly does proc_open separate the arguments from the command? Unless i'm mistak

[PHP] Re: Problems with exec() on windows

2009-03-19 Thread Shawn McKenzie
Kyohere Luke wrote: > Hi, > I'm trying to use exec to call gammu.exe and send sms on windows XP. > > This works from commandline: > > C:\path\to\gammu.exe 1 --sendsms EMS 200 -text "test1 test2" > > But if I run it through php like this: > > $command = "\"C:\path\to\gammu.exe\" --sendsms EMS 20

[PHP] Re: Problems with exec and sendfax

2001-09-05 Thread Richard Lynch
My first guess would be that sendfax wants it to have .txt on the end of it... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

Re: [PHP] Re: Problems with exec

2001-08-12 Thread Data Driven Design
t;[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, August 12, 2001 4:52 PM Subject: [PHP] Re: Problems with exec > > i have some problems with "exec". i am using win2000, apache and latest > php > > version. always 'unable to fork' . what´s the p

[PHP] Re: Problems with exec

2001-08-12 Thread Richard Lynch
> i have some problems with "exec". i am using win2000, apache and latest php > version. always 'unable to fork' . what´s the problem? As I understand it: Windows is not thread-safe. As an implication, exec-ing something would just crash anyway. Thus, exec() and friends won't work on Windows i