Hi all,

I'm trying to build php into an existing solution which uses Lasso.

I have tested the passing of data from Lasso to php and that works fine.

I want Lasso to pass the filename over to a php page and for that page to
grab the file from a folder outside of the webroot and push it out to the
user, at the same time as presenting them with a confirmation form so that
downloading can be confirmed.

I have tried the following code without any good results:

<?php
$filename="D:\\Pdf\\0226138097(57-77).pdf";
$len = filesize($filename);
$header="
Content-type: application/pdf
Content-type: application/x-octet-stream
Content-Disposition: inline; filename=D:\\Pdf\\0226138097(57-77).pdf
Content-Length: $len";
header=($header);
readfile($filename);
?>

I get a parse error on the line that calls the header.

Can anyone help me with this please?

Regards

George Pitcher

Technical Manager
HERON Project
Napier University
Edinburgh EH10 5DT

[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

http://www.heron.ac.uk
================================================
   programmer -  A device for transmuting caffeine into code.
================================================



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to