You are here: Re: Using exec function to get a .exe return status gives CGI Error « PHP Programming Language « IT news, forums, messages
Re: Using exec function to get a .exe return status gives CGI Error

Posted by Jerry Stuckle on 08/24/07 11:30

jmuria@ole.com wrote:
> Thanks to both of you.
>
> I write the PHP code
>
> exec("myapp.exe ".$_POST["password"]." ". $cifrado[0]["PASSWORD"] ,
> $output,$result);
> echo $result;
>
> if($result== 1)
> {
> ...
>
> The language is C++ but there is not printf or cout to generate any
> text output. If I execute the command with cmd (I use Windows 2003
> Server) the command is executed without problems (and no text output)
>
>

It may not matter that there is no output. It opens stdout/cout, which
may be enough. I'm not sure on a Windows machine.

Also, headers are ALWAYS required. The browser makes a request, the
server MUST respond with headers, even if no data is sent (otherwise the
browser will time out).

But this should not affect script execution. What's the real message
you're getting (translated, please, as best you can - I don't so Spanish).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация