House of Xrvel

Just another WordPress weblog

Download File On PHP

with one comment

To download page (or file) by PHP, you can add this header to the page.
On PHP, you can use this function

header('Content-Disposition: attachment; filename="SOMETHING.HTML"');

On other web programming, you can use other function. The basic idea is by adding this header

Content-Disposition: attachment; filename="SOMETHING.HTML"

Written by Xrvel

October 11th, 2009 at 10:35 am

Posted in Programming

Tagged with

One Response to 'Download File On PHP'

Subscribe to comments with RSS or TrackBack to 'Download File On PHP'.

  1. more need

    supriyadi

    21 Nov 09 at 12:32 am

Leave a Reply