Ecoli Posted July 28, 2004 Posted July 28, 2004 Hi, I am installing some PHP scripts, and by chance I just figured out why some weren't working... I had to add this line to my root folder's .htaccess: >AddType application/x-httpd-php .php .html ... which i now understand allows the webserver to parse the HTML files for embedded PHP scripts. Now my script works. Just want to check, however -- did I go about this the right way? Is there a better/safer/whatever way to do this? There was mention that this slows down the server, as it now takes time to parse every file for PHP whether it's there or not. Is this true? Thanks Skye Quote
LisaJill Posted July 29, 2004 Posted July 29, 2004 That's the right way. I've heard that argument about having to parse for all scripts, and it's not going to cause you any problems on TCH servers. I serve ALL my pages in php and it's not the least bit of a problem. Maybe on a lower end/less reliable server.... But we have top servers here, so no worries. =) Quote
TCH-Don Posted July 29, 2004 Posted July 29, 2004 You may want to add .shtml to the line so you can use php in your 404.shtml error page Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.