Re: [PHP] Unable to execute c++ .exe file from php - Resolved

2002-11-08 Thread Ladan Pickering
Thanks all for taking the time to help me out. I finally got the problem resolved. It appears that PHP was trying to use cygwin1.dll and could not find it. I am not sure why; I didn't think I even need cygwin to run php w/ Apache. Once I put a copy of cygwin1.dll in my system32 directory, my c++ .

RE: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Ladan Pickering
Thanks Ernest for your suggestion. I tried you idea with forward and backward slashes and nothing seem to change. I still see the return_var of 128. PHP is trying to tell me what the problem was, but I am unable to find what 128 means. Any idea as where the the "return_var" for the "system" and "ex

RE: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Ernest E Vogelsinger
At 00:00 09.11.2002, Ladan Pickering said: [snip] >When I look at the program (hello.exe) under cygwin. >I see that the "x" bit is set for all. As far as I can >tell anyone is permitted to execute this program. [snip]

Re: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Mike Mannakee
CTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, November 08, 2002 3:28 PM Subject: Re: [PHP] Unable to execute c++ .exe file from php > Very good question Mike. > In my hello.cc file, I have a cout to the stdout and > I open a file and write a couple of line

RE: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Ladan Pickering
ckering@;yahoo.com] > > Sent: Friday, November 08, 2002 3:11 PM > > To: [EMAIL PROTECTED] > > Cc: [EMAIL PROTECTED] > > Subject: Re: [PHP] Unable to execute c++ .exe file > from php > > > > I have tried escaping with backslashes and also > tried >

Re: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Ladan Pickering
Very good question Mike. In my hello.cc file, I have a cout to the stdout and I open a file and write a couple of lines to it. The reason I believe it is not running is that when the .php file is running from the cli, I see my "cout" and the file (test.txt) that I open is created and my lines are

RE: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread John W. Holmes
com] > Sent: Friday, November 08, 2002 3:11 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] Unable to execute c++ .exe file from php > > I have tried escaping with backslashes and also tried > forward slashes with no luck. I believe my path > specificati

Re: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Ladan Pickering
I have tried escaping with backslashes and also tried forward slashes with no luck. I believe my path specification is correct because I can look at different directories. $cmd = "dir c:\abc\efg"; system ($cmd, $errCode); Correctly display the content of "efg", and the errCode is 0; I think the

Re: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Mike Mannakee
My question is how do you know it's not running? If it really is a "hello world" application, where do you want the output to go? To the browser? That's pretty involved. Try making it write to a file and see if it contains any output after execution. Mike "Ernest E Vogelsinger" <[EMAIL PROTEC

Re: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Ernest E Vogelsinger
At 15:30 08.11.2002, Ladan Pickering spoke out and said: [snip] >I am unable to execute my c++ program from within PHP when it runs as a >cgi in Apache. >I am able to run: > >$cmd="dir c:\abc" >system ($cmd, $errCode); > >and see the content of the directory

Re: [PHP] Unable to execute c++ .exe file from php

2002-11-08 Thread Marek Kilimajer
escape your backslashes: $cmd = "c:\\abc\\hello.exe"; Ladan Pickering wrote: I am unable to execute my c++ program from within PHP when it runs as a cgi in Apache. I am able to run: $cmd="dir c:\abc" system ($cmd, $errCode); and see the content of the directory, but I don't seem to be able