RE: [SMARTY] header
| From: | Pieter Claerhout | Date: | Thu, 09 Jan 2003 18:08:47 +0000 |
| Subject: | RE: [SMARTY] header | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7087@lists.php.net to get a copy of this message | ||
The header you have specified is not correct, it should be:
<?php
header( 'Content-type: text/plain' );
readfile( 'file.c' );
?>
Cheers,
Pieter
-----Oorspronkelijk bericht-----
Van: szparag@labnet.pl [mailto:szparag@labnet.pl]
Verzonden: donderdag 9 januari 2003 19:10
Aan: smarty-general@lists.php.net
Onderwerp: [SMARTY] header
hi.is there anyone who can help me ???
i have to send a header to .html file.
i have a link : <a href="file.c">file</a>
but the browser opens file in its own window.
i want that file to be downloaded from site.
but i don't know howto send a header.
if it is header("content-type:text"); it doesn't
want correctly. .php files are downloading to hard drive.
help me.
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php