Re: Closing my Window after Download
| From: | PHP Junkie | Date: | Tue, 31 Aug 2004 20:56:18 +0000 |
| Subject: | Re: Closing my Window after Download | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195339@lists.php.net to get a copy of this message | ||
Ave,
Indeed, it didn't work. Anymore suggestions?
On 8/31/04 2:09 PM, "Jasper Howard" <jasper@velocity7.com> wrote:
> try this, after you force download of the file, use:
>
> header("Location: close_window_script.php");
>
> where the only code in that file is something like this:
>
> <script language="javascript">
> <!--
> window.close();
> //-->
> </script>
>
>
> this is a total workaround, but since its the only thing in the document,
> its very possible that it'll work, it won't take any more time to load
> either because you're using the header() function to forward, so the user
> has to download the same amount of info.