output of session_start()

From: Date: Tue, 22 Aug 2000 08:08:34 +0000
Subject: output of session_start()
Groups: php.general 
Request: Send a blank email to php-general+get-12898@lists.php.net to get a copy of this message
Hi, I use a script that sends header information to the browser. When I paste session_start() before the header() lines, the script stops working. I need the session, because the variables are stored in the session. I use no cookies, but trans-sid. Does session_start() send some information before the header() command? --------------- <? session_start(); header("Content-disposition: attachment; filename=$file"); header("Content-type: application/x-octetstream"); header("Expires: 0"); readfile($path."/".$file); ?> --------------- Stefan

« previous php.general (#12898) next »