Page 1 of 1

Programmatically exiting Firefox with PHP

Posted: Mon Jun 07, 2010 11:19 am
by pizzipie
I would like to exit the Firefox browser at the finish of my PHP script. Using exit() all it will
do is go to the index.html in the browser. I would like to end up at the regular Ubuntu opening
window.

Could someone show me code to do this. I have set Firefox to allow exit:
"dom.allow_scripts_to_close_windows" .

Thanks in advance,

RP

Re: Programmatically exiting Firefox with PHP

Posted: Mon Jun 07, 2010 11:22 am
by markusn00b
PHP doesn't run in the browser. Use JavaScript instead.

Re: Programmatically exiting Firefox with PHP

Posted: Mon Jun 07, 2010 11:22 am
by Jonah Bron
PHP can't do that. At the end of your PHP, insert some Javascript to close the window.

http://www.google.com/search?q=javascript+close+window