Can any one tell me How to get values from a batch file and display the output in PHP script? I have a simple batch file and simply want to display values in html/php format,
Thanks!
Can any one tell me How to get values from a batch file and display the output in PHP script? I have a simple batch file and simply want to display values in html/php format,
Thanks!
If you need the output from the .bat file to display in PHP, you can either run the file from PHP (not recommended) - this will only work on a computer running some version of DOS/Windows, so also not recommended, or you can run the file via the built-in scheduler in your operating system, outputting the values to a text-file or similar, and then read that file via PHP (a much safer option).
Although I'm guessing you're trying to do something you shouldn't be doing, so a bit more information might be needed.