Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
So you need it to be downloadable? If so, you can just post the code as a normal text file, with the extension .vcs, then in your .htaccess file, add this:
Code:
AddType application/octet-stream .vcs
Or, in your php headers you could:
PHP Code:
header("Content-Type: application/octet-stream");
Personally, I find the .htaccess method easier.
****EDIT***
I think I'm missing what you need here. Sorry.
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
Last edited by wayfarer07; 05-02-2009 at 01:24 PM..
|