Jump to content

why name pages with different extensions


dreamwest

Recommended Posts

why name pages with different extensions when it comes to php,html,htm,shtml

 

i mean if you have a php page youve stilll gotta use <?php ?> tags within php coding as you would with shtml pages

 

whats the point!

 

I can understand renaming html to shtml considering shtml pages are text based, meaning better indexing, but php still boggles my fragile little mind..?!!?

 

 

Link to comment
Share on other sites

Apache is generally configured to only run files with the .php extension through the PHP interpreter. You can configure it to parse .html files too, but why waste system resources on files that aren't going to require it?

 

I guess there are a number of reasons, efficiency (as outlined above), ease of identifying a files content without opening it, files can automatically be opened in an application that supports it without a "middleman" checking the file first to find a suitable app based on its content, et cetera.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.