Todd,

if that script is the result of a link being follwed, add target="blank" to
the end.

George

> -----Original Message-----
> From: Todd Cary [mailto:[EMAIL PROTECTED]
> Sent: 10 March 2003 5:28 pm
> To: [EMAIL PROTECTED]
> Subject: [PHP] Opening a file in a new window
>
>
>   Thanks to your help, this now is working:
>
> <?
>   $session_id      = $HTTP_POST_VARS[session_id];
>   $filename        = $HTTP_POST_VARS[filename];
>
>   /* Validate session_id here */
>
>   header("Content-type: text/html");
>   header("Content-Disposition: filename=" . $filename);
>   $fp = fopen($filename, "r");
>   if($fp) {
>     fpassthru($fp);
>     fclose($fp);
>   }
> ?>
>
> Now I would like to open the file in a new window and I am not sure how
> to do that.
>
> Todd
>
> --
> Ariste Software, Petaluma, CA 94952 \n [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to