note 43793 deleted from function.session-start by tomsommer
| From: | tomsommer@php.net | Date: | Sun, 04 Jul 2004 00:24:16 +0000 |
| Subject: | note 43793 deleted from function.session-start by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-72495@lists.php.net to get a copy of this message | ||
Note Submitter: xlord_tk@hotmail.com
----
Also i realized that when using sessions and meta tag at the top can cause problems..
for example i was doing a script to download other scripts and programs..
this will error out
-----------------------------------------
<?php
session_start( );
echo '<link rel="stylesheet" type="text/css" href="style.css"
title="File Management">';
if( isSet( $download ))
{
copy( "$upload_dir/$download", $download );
$filesize = filesize( $download );
header('Content-Type: application/octetstream; name="' . $download .
'"');
header('Content-Disposition: inline; filename="' . $download . '"');
header("Content-length: $filesize");
}
---------
dont know why.. but this worked out for me
this works
----------------------------------
session_start( );
if( isSet( $download ))
{
copy( "$upload_dir/$download", $download );
$filesize = filesize( $download );
header('Content-Type: application/octetstream; name="' . $download .
'"');
header('Content-Disposition: inline; filename="' . $download . '"');
header("Content-length: $filesize");
}
echo '<link rel="stylesheet" type="text/css" href="style.css"
title="File Management">';