Hi
I have a senario where i need to execute an external batch file and need to pass 2 values then it will give a output using i need to read the output and show it in the browser.
step 1 : call command exe file.
step 2 : enter user name
step 3 : enter password
step 4 : read the result and publish in the browser
How can we do that using php? Please help urgent.
Ganesh
External command execution. with result pls urgnet.
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: External command execution. with result pls urgnet.
And for the record, the urgency you place on your request does not equate to this community with the same value.
Re: External command execution. with result pls urgnet.
Infact inverse value, usually.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Re: External command execution. with result pls urgnet.
"with result pls urgnet."
It is neither a complete sentence nor coherent.
It is neither a complete sentence nor coherent.
(#10850)
Re: External command execution. with result pls urgnet.
Hi
Sorry for the mis communication.
It some thing like Passing the 2 values to the batch file and get the result based on the input? how can we do that.
Thanks
Sorry for the mis communication.
It some thing like Passing the 2 values to the batch file and get the result based on the input? how can we do that.
Thanks
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: External command execution. with result pls urgnet.
Code: Select all
$result = exec('some-command ' . $arg1 . ' ' . $arg2);