Hey there everyone, I'm trying to generate a .cdf file (MSIE channel definition) from a set of database results. Ideally what I would like to do is have the end user browse to channel.php (so that I could dynamically fill the XML file with information from a database) and have it load the channel automatically, as if the file was named channel.cdf. Herein lies the first part of my problem. I created a regular channel file, and led it off with the following code:
<?php
header("Content-Type: application/x-netcdf");
header("Content-Disposition: attachment; filename=bookmarks.cdf");
?>
<? echo "<?XML VERSION=\"1.0\" ENCODING=\"UTF-8\"?>"; ?>
<CHANNEL>
[...]
Everything that I know tells me that this should accomplish what I wish, but alas, it doesn't. Can anybody clue me in on how I would accomplish what I'm aiming to? Thanks!!