Re: Closing my Window after Download
| From: | Curt Zirzow | Date: | Tue, 31 Aug 2004 19:07:08 +0000 |
| Subject: | Re: Closing my Window after Download | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195323@lists.php.net to get a copy of this message | ||
* Thus wrote Jasper Howard:
> 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.
This will *not* work. you can't send a file and close a window in
the same request.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!