Hi, I have made a php page where people can configure a javascript online
with a preview and then dowload the result. Here is the code:
<?
// Some code that create a temp file ($file handler = $fd) and write the
script
// Send the file
header("content-type: text/plain");
header("Content-length: ".filesize($file));
header('Content-Disposition: attachment; filename="script_name.js"');
flush();
while(!feof($fd)){
echo fread($fd, 1024);
flush();
}
fclose($fd);
?>
Everything works fine with IE, Mozilla, FireFox and Opera. But with Netscape
(7.0) no file is sent and I end up with a blank page. But still with
Netscape, if I right-click the link and choose save as..., then it works ok
Any idea ?
Thanks
Dae