Reply to Re: Using exec function to get a .exe return status gives CGI Error

Your name:

Reply:


Posted by Jerry Stuckle on 08/24/07 16:46

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)
>
>

BTW - I still go back to a possible security issue. Does the webserver
user have permission to execute the C++ program?

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

[Back to original 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

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