# Without web server, run PHP script and view output in web browser
Two simple Bash scripts, either of which can be used as a Rox-Filer run action for ".php" files.
"Without web server, run PHP script and view output in web browser" creates one temporary HTML file which contains only output from STDOUT - `/tmp/temp-php.html`
"Without web server, run PHP script and view output and errors in web browser" creates 3 temporary HTML files:
Both scripts run PHP scripts with the command "php-cgi", so the output of PHP commands like "phpinfo();" will have HTML formatting.
Depending on which script you use, 1 or 3 temporary HTML files are generated, which are then immediately opened in the Pale Moon web browser.
You could use the Firefox web browser instead, but Firefox has an annoying inability to automatically switch to Unicode mode when looking at file:/// URLs.