Problem with caracter inserted in first line (RSS)
| From: | Luc Saint-Elie | Date: | Mon, 19 Jan 2004 12:02:49 +0000 |
| Subject: | Problem with caracter inserted in first line (RSS) | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10843@lists.php.net to get a copy of this message | ||
Hello,
I have a rather simple backend.php page that is supposed to output a rss feed.
The system is rather simple
....
$smarty->assign('sitedata',$sitedata);
header ("content-type: text/xml");
$smarty->display($smarty->design.'/rss/backend.tpl');
My backend.tpl file is a rss (091) file that calls a plugin for fetching news titles
the canonical "<?xml version="1.0"..." is at the very beginning of the file.
The output is screwed beacsue on the resulting file the <?xml version="1.0" is not at the very beginning, a caracter is inserted before.
Any idea ?
Luc