Re: Unable to execute c++ .exe file from php - Resolved
| From: | Ladan Pickering | Date: | Sat, 09 Nov 2002 03:52:01 +0000 |
| Subject: | Re: Unable to execute c++ .exe file from php - Resolved | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-123539@lists.php.net to get a copy of this message | ||
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++
.exe file started running.
Hope this helps someone else. If someone knows why
PHP needs any cygwin dlls, I would be interested in
knowing the reason.
"Ladan Pickering" <ladan_pickering@yahoo.com> wrote in
message
news:20021109025418.61843.qmail@web11708.mail.yahoo.com...
> 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
"exec"
> commands are defined?
>
> Thanks
>
> --- Ernest E Vogelsinger <ernest@vogelsinger.at>
> wrote:
> > 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]--------------------
> >
> > Make your command like this
> >
> > c:/abc/hello.exe 2>&1
> >
> > to see if some error is given... might be a
problem
> > with environment space?
> >
> >
__________________________________________________
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2