Opening a file in a new window
| From: | Todd Cary | Date: | Mon, 10 Mar 2003 17:28:06 +0000 |
| Subject: | Opening a file in a new window | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-138981@lists.php.net to get a copy of this message | ||
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 info@aristesoftware.com