Php server response to android when executing a batch file -


i have application in java & have created batch file(.bat) of application & running in php this

   <?php       system ("cmd.exe /c final.bat");    ?> 

the output this

c:\wamp\www\php>java -jar closely reseambling this...c:\wamp\www\php>pause press key continue . . .

i invoking through android application & want out response...can tell me how .... great if able eliminate prompts response.

check out exec function. instead of automatically printing output, return output string, or in optional array of lines in second argument. can parse string or array , print need.

example print first line of output:

exec('cmd.exe /c final.bat',$output); for($i = 1; $i < count($output); ++$i) echo $output[$i],'<br />'; 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -