RE: [PHP] Opening a file in a new window

2003-03-10 Thread George Pitcher
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 wind

[PHP] Opening a file in a new window

2003-03-10 Thread Todd Cary
Thanks to your help, this now is working: /* 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 windo