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
Programmatically exiting Firefox with PHP
Moderator: General Moderators
- markusn00b
- Forum Contributor
- Posts: 298
- Joined: Sat Oct 20, 2007 2:16 pm
- Location: York, England
Re: Programmatically exiting Firefox with PHP
PHP doesn't run in the browser. Use JavaScript instead.
- Jonah Bron
- DevNet Master
- Posts: 2764
- Joined: Thu Mar 15, 2007 6:28 pm
- Location: Redding, California
Re: Programmatically exiting Firefox with PHP
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
http://www.google.com/search?q=javascript+close+window