On Thursday 04 July 2002 10:46, JJ Harrison wrote: > I can output the file using readfile(). But the problem is that it appears > to output the data in it's raw form. How can I get it to open in the right > application?
You _do_ want it to output the data in it's raw form. However it is your responsibility to output the correct headers beforehand so the browser knows what to do with the file. Search archives for "download" would/should bring up loads of articles on what form the headers should take. -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* the butane lighter causes the pincushioning */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php