Re: Calling exe/cgi
| From: | Tiny | Date: | Fri, 15 Nov 2002 17:10:28 +0000 |
| Subject: | Re: Calling exe/cgi | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-16972@lists.php.net to get a copy of this message | ||
On Fri, 15 Nov 2002 10:58:06 -0500, brennan@hire-experience.com
(Brennan Mann) wrote:
$param=escapeshellcmd($param);
system("program.exe $param");
>I am sorry. I forgot to add that the CGI uses the get method to receive
>data.
>For example "my_cgi.exe?=1000"
>The system("my_cgi.exe") call worked. But I still need to pass data to the
>exe. Any suggestions?
>
>Thanks again!
>
>Brennan
>
>"Brennan Mann" <brennan@hire-experience.com> wrote in message
>news:20021115145428.12116.qmail@pb1.pair.com...
>> Hello everybody!
>>
>> I am new to PHP. I have several C and C++ programs that run as cgi(s).
>> Currently, I am just using a form on a web page to call the cgi(s). I am
>> running PHP on a Windows 2000 server with IIS. Can you call/invoke an exe
>> program from a PHP script? If so, could you please show an example.
>>
>> Thanks for your help!
>> Brennan
>>
>>
>