By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,722 Members | 1,904 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,722 IT Pros & Developers. It's quick & easy.

DOS Frontend

P: n/a
Suppose I have an old interactive DOS program that I want to control via
the web. Is it possible to create a PHP program that not only starts the
program, but allows keyboard input and displays the output of the DOS
program interactively? If PHP can't do this, any other suggestions?

Thanks.
Feb 20 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Feb 20, 3:11 pm, Brad Everman <death...@otaku.freeshell.orgwrote:
Suppose I have an old interactive DOS program that I want to control via
the web. Is it possible to create a PHP program that not only starts the
program, but allows keyboard input and displays the output of the DOS
program interactively? If PHP can't do this, any other suggestions?

Thanks.
Is the DOS program text based or graphic based?
If text (which I presume), it is full screen interaction, or does it
just spit out text messages in response to being run with various
command line params?

Feb 20 '07 #2

P: n/a
On Feb 20, 4:11 pm, Brad Everman <death...@otaku.freeshell.orgwrote:
Suppose I have an old interactive DOS program that I want to control via
the web. Is it possible to create a PHP program that not only starts the
program, but allows keyboard input and displays the output of the DOS
program interactively? If PHP can't do this, any other suggestions?

Thanks.
Dear Brad,

have a look at popen() et al

http://at.php.net/manual/en/function.popen.php

This might help you communicate interactively with your DOS programm.

Good luck
Martin
------------------------------------------------
online accounting on bash bases
Online Einnahmen-Ausgaben-Rechnung
http://www.ea-geier.at
------------------------------------------------
m2m server software gmbh
http://www.m2m.at

Feb 21 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.