RE: folder creation in php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



use the headers

header("Content-Length: ".filesize($filepath));
header("Content-type: application/octet-stream");
header("Content-disposition: $attachment filename={$newfile}");
header("Content-Transfer-Encoding: binary");
readfile($filepath);

bastien

From: "Adil" <aasheer@xxxxxxxxxxxx>
To: php-db@xxxxxxxxxxxxx
Subject:  folder creation in php
Date: Tue, 12 Oct 2004 14:28:10 -0400

Here's what i'm trying to do in php and a mySQL database:

I want a button on a page that if clicked it launches the browser's or OS's
"Save As" window, allowing me to specify where to save my file and/or create
a new folder


thx in advance
Adil..

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux