It's worth noting that if you're just generating HTML that creates just a regular old HREF pointing to a regular old file, that the web server will handle sending out the proper headers.
For example: <a href="filename.zip">Your Download</a> You don't need to do anything special with PHP to make this send correctly and PROBABLY (assuming the web server is configured properly for that filetype) trigger your web browser to do the whole Save As... Thing (again, assuming that your BROWSER is configured to ask what you want to do.. Firefox, for example, will automatically download to your desktop on a windows box by default). If, for example, you generated html like this though: <a href="datasendscript.php?id=1234">Your Download</a> Then your "datasendscript.php" would have to generate the proper headers. -TG > -----Original Message----- > From: Dylan Barber [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 12, 2004 2:52 PM > To: Gryffyn, Trevor > Subject: RE: [PHP-DB] folder creation in php > > > > you need to send headers to tell the os what the page is like > mime type etc. look on the PHP documentation > -----Original Message----- > From: "Gryffyn, Trevor" <[EMAIL PROTECTED]> > Sent: Oct 12, 2004 1:34 PM > To: [EMAIL PROTECTED] > Cc: Adil <[EMAIL PROTECTED]> > Subject: RE: [PHP-DB] folder creation in php > > The browser will automatically do this when you click on a link to a > file that the web browser knows as a file that you download > versus HTML > or text being sent to the browser where it's just displayed instead of > triggering the download prompt. > > Maybe that doesn't make much sense.. My head's a bit foggy right now. > But the deal is, you just need to create a link that when clicked on, > sends the browser something other than HTML or text or a known picture > format (you might have to send headers declaring the MIME type too... > Most likely do). > > The link itself is something that's just done in HTML. What happens > when you click the link might be PHP driven, but in general > this isn't a > PHP or DB question unless there's something with the link that you're > having trouble creating. > > -TG > > > -----Original Message----- > > From: Adil [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, October 12, 2004 2:28 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP-DB] folder creation in php > > > > > > 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 > > > > <a href="mailto:[EMAIL PROTECTED]">Dylan Barber</a> > Webmaster / Web Developer / Programing > <a href="http://codegalaxy.com">-codegalaxy.com-</a> > <a href="http://summer-swim.com">-summer-swim.com-</a> > <a href="http://clipurl.com">-clipurl.com-</a> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php