Jump to content

Recommended Posts

  1. fputcsv ()
  2. Because this is a proprietary binary format. Only Microsoft knows for sure how it's defined, and it changes for every single Excel version released.
    This causes many problems, one of them being that any other implementation of this (which is not directly supported by MS) is actually of dubious legal nature depending upon which country you're in.

you can pretend a page is an exel file by manipulating the header. I don't know how it will translate an html table but using

header("Content-type: application/x-msdownload");
header("Content-Disposition: attachment; filename=yourFileName.xls");
header("Pragma: no-cache");
header("Expires: 0");

will force the browser to treat the page as an exel file download.

Edited by Muddy_Funster
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.