MozPHP: More and more, PHP is being seen as a command line and application scripting language.
“MozPHP is a Mozilla PHP integration package. With MozPHP you can execute PHP scripts in Mozilla directly without the need for a local HTTP server.
Currently the integration is one way, i.e. it is not possible to access Mozilla internals from PHP scripts. This may change in the future but there are no concrete plans for this. “
Via PHP Kitchen.