Loading ...
Sorry, an error occurred while loading the content.

Download problem

Expand Messages
  • tarun dwivedi
    Hi All, I tried to download a file in excel form but getting errors. $content = Data to print here ; echo $content; header( Pragma: public ); header( Expires:
    Message 1 of 1 , Jun 30, 2006
    • 0 Attachment
      Hi All,
       
      I tried to download a file in excel form but getting errors.
       
            $content = "Data to print here";
           echo $content; 
           
           header("Pragma: public");
           header("Expires: 0");
           header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
           header("Cache-Control: public");
           header('Content-type: application/vnd.ms-excel');
           header('Content-Disposition: attachment; filename=orderReport.xls');
           header("Content-Transfer-Encoding: binary");
           exit;
       
      Is there any idea to do plz reply me
       
      Thanks
      Tarunendra


      Do you Yahoo!?
      Everyone is raving about the all-new Yahoo! Mail Beta.
    Your message has been successfully submitted and would be delivered to recipients shortly.