php based file downloads

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I need to downloads some php files via http with out it being processed  
by the Apache/mod_php server.

I need the raw source files.

How can I do that? I need a web based method.


Re: php based file downloads

*** EJT escribió/wrote (Wed, 23 Aug 2006 12:49:05 -0400):
Quoted text here. Click to load it

header('Content-Type: text/plain');
header('Content-Length:' . filesize($path . $file));
header('Content-Disposition: attachment; filename="' . $file . '"');
readfile($path . $file);

-+ - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web:
+- Mi web de humor con rayos UVA:

Site Timeline