downloading variable data

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Post by Redcircle » Tue Jun 24, 2003 11:54 pm

it is very possible to do that.

Before you echo anything out to the browser you will have to send a header call with the file type.

lookup http://www.php.net/header

Code: Select all

header("Cache-control: private");
header("Content-type: application/zip");
header("Content-disposition:attachment; filename=$filename");

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests