ac senthilkumar's blog

________________________________________________________________________________________

Tuesday, June 14, 2011

Serve file to download like "Save as"

        header('Content-type: application/pdf');
        header('Content-Disposition: attachment; filename="downloaded.pdf"');
        readfile('original.pdf');
Posted by Senthil kumar at 6/14/2011 02:49:00 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: PHP

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Popular Posts

  • Err: Call to a member function get_cellmap() on a non-object by sfDomPDFPlugin in Symfony
  • quicktime demuxer not found in Ubuntu 11.10
  • Get Distinct values from comma separated values
  • Order by using user defined values for a field
  • Regular expressions
  • Bulk select or deselect of check boxes using JQuery
  • View tamil contents properly in Chrome under Ubuntu
  • Err: Can't include or not working
  • Err: Retaining/populating of the value does not change in Drupal while edit form
  • Advanced SQL to fetch entire year deatail records

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Search in this Blog ...

Labels

  • Linux (49)
  • Errors (44)
  • PostgreSQL (44)
  • Ubuntu (38)
  • PHP (34)
  • How to (33)
  • Java Script (15)
  • Tips (15)
  • Apache (11)
  • Regular Exp (11)
  • Drupal (9)
  • Open Office (9)
  • CSS (6)
  • Flash Builder for PHP (6)
  • Symfony (5)
  • Web (5)
  • Windows (5)
  • Eclipse (3)
  • Programming (3)
  • Advanced SQL (2)
  • Firefox (2)
  • Android (1)
  • Chrome (1)
  • HipHop (1)
  • Java (1)
  • Links (1)
  • MySQL (1)
  • Softwares (1)
  • Utilities (1)

Followers

Senplusone. Simple theme. Powered by Blogger.