is it possible to build a dynamic page and force client to download it and not view it as a web page (even if the extension page is .php or .phtml)
i want to build a CVS file via PhP and send it to the user
try sending these headers first and then the file.
header( "Content-type: application/octet-stream" ); header( "Content-Disposition: attachment; filename=$filename" ); header( "Content-Length: $filesize" );
echo $file;
Hope this helps,
regards,
Sivaprasad R.L. http://www.leaveletter.com