Posted by Alvaro G. Vicario on 08/23/06 18:28
*** EJT escribió/wrote (Wed, 23 Aug 2006 12:49:05 -0400):
> 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.
header('Content-Type: text/plain');
header('Content-Length:' . filesize($path . $file));
header('Content-Disposition: attachment; filename="' . $file . '"');
readfile($path . $file);
exit;
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
Navigation:
[Reply to this message]
|