Jump to content

Recommended Posts

Posted

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

Posted

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. =)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...