PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 23rd, 1999, 12:58 AM
spaceman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I'm looking for some advice about the pros and cons of different file name extensions for html/php documents. I'm working from the basic premise that it's not a good idea to keep changing the extension of a file because, for example, those hard-earned search engine references will be compromised if you change the name of a file in any way.

It would seem shortsighted to give a php document a .php3 file extension since php4 is just around the corner. So I tend to prefer naming any document containing any version of php with the generic extension of .phtml. However, I could go the whole hog and give all my web page documents an extension of .html - whether or not they include php. But, as I understand it, the price I pay is that non-php code must now go through the php parser regardless, thereby (marginally) slowing down access to those pages. Is that a big overhead?

Opinions anyone? Is there a recommended/preferred solution or does it just come down to personal preference?

Thanks.

Reply With Quote
  #2  
Old September 26th, 1999, 02:14 PM
Paul Cotton
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I used .php, but if you want to have the pages ranking on the se's (especially AltaVista) then .htm or .html is necessary.

I am changing my setup so that .htm is for normal html type and .html is for parsed php scripts.

This way the sites will fare better on the se's and I will still be able to tell them apart.

I wanted to use php on both .html and .htm but I understand this will disable server side includes which I use extensively for logging purposes.

Reply With Quote
  #3  
Old September 28th, 1999, 12:40 AM
spaceman
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks for your response, Paul. You have raised an issue which I had not previously considered - that certain search engines might actually ignore web pages with certain 'unrecognised' extensions.

Of course, I never submit an exact web page filename to the search engines, but didn't expect that when search engines trawl the web that certain filenames might be excluded based on their extension.

I recognise that getting a web page listed prominently on a search engine is not the panacea of web 'success', but at the same time I recognise that the more hits/business one of our hosting clients gets, the happier he/she is with our service. If I am reducing the volume of visits to a web site by using '.php3' or '.phtml' file extentions, then this is of serious concern to me. Like you, we use SSIs extensively, and it sounds like your solution is the most desirable.

Have you seen it written by Alta Vista et al that they don't index pages with non .html/.htm extensions, or is this just your personal observation?

Thanks.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > .phtml vs .php3 vs .html


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT