Hi Mikey... I'm not quite sure what you mean by doing it within one page...
do you mean apart from using <meta http-equiv="Refresh" content="0;URL=http://www.something.com/something.zip"> ? You could probably try a header('Location: http://www.something.com/something.zip); Or, if you want to appear as though the file is coming from your site, you can read the entire file using: echo implode(file('', 'http://www.something.com/something.zip')); after setting the appropriate headers. Bear in mind though, that all downloaded traffic will be routed through your site, and you will pay bandwidth costs, and it will probably slow your site down big time. Hope that helps... Matt "Mikey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone on this list know how to send a file automatically to a site > user after viewing an HTML page, such as is done at download.com? > > I can re-direct to the file using an HTTP directive in the page but was > wondering if there was anyway to do this within one page? > > regards, > > Mikey > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php