Solved

PHP Parse .htm Extensions?

Posted on 2002-07-22
2
239 Views
Last Modified: 2006-11-17
I am redoing my site that has all .htm extensions. I want to use some php scripting but am concerned that if I direct php to parse .htm files on my Apache server, it might cause problems. Has anyone tried this with success or know of any downside?
Thanks much!
Emory
0
Comment
Question by:emory7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
thetool721 earned 50 total points
ID: 7170290
Use the PHP file extension instead of setting Apache to parse htm and html files.

By telling Apache to parse these files, your webserver will attempt to parse EVERY file it serves with that extension.  This is going to cause some major performance problems on the server.
0
 

Author Comment

by:emory7
ID: 7170316
Thanks very much! That's what I needed to know!
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question