![]() Topic awaiting preservation: Downloadable .php files, but only in a certain directory? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: under your rug, |
![]() 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 |
![]() 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 |
![]() Try dropping an .htaccess file in with this line |
Paranoid (IV) Inmate From: under your rug, |
![]() 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 |
![]() |
Paranoid (IV) Inmate From: under your rug, |
![]() wow very cool mr.maX , thanks a bunch |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |