reportingsjr Posted December 24, 2006 Share Posted December 24, 2006 This may be for the php forum but I dont know.. I tried to do the thing where you write this in an .htaccess file:AddType application/x-httpd-php (dont know if its right, just took it right out of meh brain!)I put .php .htm .html after it, but whenever I tried to go to an html page on my site in a sub directory it tried to force a download. I looked it up and tried another way that said would remove the forced download, but it still comes up! Im using php version 4.something (higher up, not an older one). So any help appreciated! Link to comment Share on other sites More sharing options...
Sniffy Posted December 24, 2006 Share Posted December 24, 2006 I know this isn't helping you, but I was wondering what is the .htaccess file and what is it used for?Is it for apache server hook-ups or something? Link to comment Share on other sites More sharing options...
reportingsjr Posted December 24, 2006 Author Share Posted December 24, 2006 Its a file where you can control other files, you can password protect directories and files, and a bunch of other things. Go google it . Link to comment Share on other sites More sharing options...
boen_robot Posted December 24, 2006 Share Posted December 24, 2006 If the server has PHP support disabled, you won't be able to enable it just like that. Also, I think AddType is only relevant when PHP is running as a CGI binary, but it might be running as Apache module. Link to comment Share on other sites More sharing options...
Sniffy Posted December 24, 2006 Share Posted December 24, 2006 Its a file where you can control other files, you can password protect directories and files, and a bunch of other things. Go google it . Thanks, now I know how to stop some idiot from taking all the info out of user text files. Link to comment Share on other sites More sharing options...
reportingsjr Posted December 25, 2006 Author Share Posted December 25, 2006 I think AddType is only relevant when PHP is running as a CGI binary, but it might be running as Apache module.You know what, I bet you that is it! Is there any other way to do it? Link to comment Share on other sites More sharing options...
jlhaslip Posted December 25, 2006 Share Posted December 25, 2006 This is what works for me... AddType application/x-httpd-php .html .htm Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now