Closing Browser
Dear List -
How do I close the browser window, with a script [shell or Perl],
after I exit PHP?
Thanks.
Ethan
MySQL 5.1 PHP 5 Linux [Debian (sid)]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Closing Browser
echo <<<SCRIPT
<script language="javascript">
window.close();
</script>
<<<SCRIPT;
Best regards
惠新宸 Xinchen Hui
http://www.laruence.com/
On 2010/12/3 13:45, Ethan Rosenberg wrote:
> Dear List -
>
> How do I close the browser window, with a script [shell or Perl],
> after I exit PHP?
>
> Thanks.
>
> Ethan
>
> MySQL 5.1 PHP 5 Linux [Debian (sid)]
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Closing Browser
At 12:55 AM 12/3/2010, =E6=83 =E6=AD=B0=E5=AE=B8 wrote:
>echo <<<SCRIPT
>
><script language=3D"javascript">
> window.close();
></script>
>
><<<SCRIPT;
>
>Best regards
>
>=E6=83 =E6=AD=B0=E5=AE=B8 Xinchen Hui
>http://www.laruence.com/
>
>On 2010/12/3 13:45, Ethan Rosenberg wrote:
>>Dear List -
>>
>>How do I close the browser window, with a script [shell or Perl],
>>after I exit PHP?
>>
>>Thanks.
>>
>>Ethan
>>
>>MySQL 5.1 PHP 5 Linux [Debian (sid)]
>>
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
++++++++++
Thank you.
I probably did state my question correctly. Let's try again...
I have two(2) browser tabs open. One is a Google
search and the other is my PHP script. When my
PHP script exits, I want that tab to close.
Sorry for any confusion.
Ethan
MySQL 5.1 PHP 5 Linux [Debian (sid)]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Closing Browser
At 12:45 AM -0500 12/3/10, Ethan Rosenberg wrote:
>Dear List -
>
>How do I close the browser window, with a script [shell or Perl],
>after I exit PHP?
>
>Thanks.
>
>Ethan
Ethan:
PHP runs before the browser reads the result. As such, if PHP closed
the window when it exited, then there would not be an open window for
the user to see.
I suggest you re-think what you are trying to do. In fact, if you
simply state what you are trying to do, it might be a better way to
get our opinion.
Cheers,
tedd
--
-------
http://sperling.com/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] Re: [PHP] Closing Browser
If you are trying to do some automation type stuff you might want to look at
something like Robo Task -
http://www.robotask.com/
You can schedule a browser open to specified URL's (php script) and have it
close the window handle after the page is loaded.
Regards,
Will T
Chief Technical Officer
Oddity Software LLC
Toll Free 1.888.506.5995
http://www.odditysoftware.com
-----Original Message-----
From: tedd [mailto:tedd.sperling [at] gmail.com]
Sent: Monday, December 06, 2010 3:39 PM
To: Ethan Rosenberg; php-db-lists.php.net; php-general [at] lists.php.net
Subject: [PHP-DB] Re: [PHP] Closing Browser
At 12:45 AM -0500 12/3/10, Ethan Rosenberg wrote:
>Dear List -
>
>How do I close the browser window, with a script [shell or Perl], after
>I exit PHP?
>
>Thanks.
>
>Ethan
Ethan:
PHP runs before the browser reads the result. As such, if PHP closed the
window when it exited, then there would not be an open window for the user
to see.
I suggest you re-think what you are trying to do. In fact, if you simply
state what you are trying to do, it might be a better way to get our
opinion.
Cheers,
tedd
--
-------
http://sperling.com/
--
PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php