I dont know if Im pointing out the obvious or if you orgot to post more
code.
<?PHP
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=file.txt");
// get file data rom db or wherever
echo $data;
?>
--
Chris Lee
[EMAIL PROTECTED]
"Joe Van Meer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there. I managed to get the prompt for a file download when a user
clicks
> on a text link. The file downloads properly to the client machine, howevr,
> when I open up the file there is no content. What do I have to add to the
> following code to get the content sent back to the user?
>
> Thx Joe :)
>
> <?PHP
>
> header("Content-type: application/octet-stream");
> header("Content-Disposition: attachment; filename=file.txt");
>
> ?>
>
>
>
--
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]