Topic awaiting preservation: Downloadable .php files, but only in a certain directory? |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: under your rug, |
posted 10-17-2002 18:59
I want to setup a directory where i can share some of my .php script files with a few friends of mine. I know I can just .zip the file and do it that way, but is it possible to maybe put something in my .htacess file to say all .php files in this directory should not be parsed but instead should be downloadable or treated as a .zip file or something to that effect? |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 10-18-2002 01:16
Hmmm... I wonder if doing something with headers might work... code: header("Content-Description: source for $fname - $fname.php");
|
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 10-18-2002 01:28
Try dropping an .htaccess file in with this line |
Paranoid (IV) Inmate From: under your rug, |
posted 10-18-2002 04:31
Thanks you both code: AddType application/octet-stream .php Makes all .php files in my script directory prompt for download just like an exe file would |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 10-18-2002 08:50 |
Paranoid (IV) Inmate From: under your rug, |
posted 10-18-2002 19:43
wow very cool mr.maX , thanks a bunch |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 10-18-2002 20:30 |