# Execute interactive bash menu script in browser with PHP

**URL:** <https://community.unix.com/t/execute-interactive-bash-menu-script-in-browser-with-php/255820>\
**Category:** Shell Programming and Scripting\
**Created:** [December 14, 2009, 4:24pm UTC](https://community.unix.com/t/execute-interactive-bash-menu-script-in-browser-with-php/255820 "2009-12-14T16:24:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nck](https://community.unix.com/letter_avatar/nck/32/6_449c533f586939b6e5f246632a46421f.png) [@nck](https://community.unix.com/u/nck)\
**Post date:** [December 14, 2009, 4:24pm UTC](https://community.unix.com/t/execute-interactive-bash-menu-script-in-browser-with-php/255820/1 "2009-12-14T16:24:03Z")

</div>

I have an interactive menu script written in bash and I would like use PHP to open the interactive bash menu in a browser.

Is this possible?

Using the sytem() function in php runs the script but it's all garbled.

Seems like maybe a terminal window needs to be opened in php first?

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![frank\_rizzo](https://community.unix.com/letter_avatar/frank_rizzo/32/6_449c533f586939b6e5f246632a46421f.png) [@frank\_rizzo](https://community.unix.com/u/frank_rizzo)\
**Post date:** [December 14, 2009, 7:21pm UTC](https://community.unix.com/t/execute-interactive-bash-menu-script-in-browser-with-php/255820/2 "2009-12-14T19:21:11Z")

</div>

if your writing a command line PHP script then yes. If your executing this from a web browser then no.
