You are here: Re: problem saving an excel file « PHP SQL « IT news, forums, messages
Re: problem saving an excel file

Posted by J.O. Aho on 09/09/07 16:22

GD wrote:
> i have a php script to convert a simple query into an excel format
> file (tab delimited) which is called mysql-to-excel. on the author's
> website when i click on the script i download an xls file, but when i
> do the same on my server it just echos back the query without saving a
> file. any ideas. here is the script:

This has much to do with mimetypes and how things are configured, by tradition
products from microsoft are quite bad when it comes to mimetypes. I suggest
you try with application/octet-stream which seems to be the one and only way
to force a microsoft product to always save a file instead of displaying them.


--

//Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация