You are here: Re: File name: foo.php OR foo.htm « PHP Programming Language « IT news, forums, messages
Re: File name: foo.php OR foo.htm

Posted by Benjamin Esham on 08/20/06 01:26

Olumide wrote:

> This has probably been asked before, but I would like to know when its
> best to name a file with either extension.

Typically, your file will only be processed as PHP code if its extension is
".php". Therefore, you should use that for all PHP files. HTML files will
probably be handled correctly if they are given the .php extension, but the
best practice is to use .htm (or, preferably, .html) if the file contains no
PHP code.

HTH,
--
Benjamin D. Esham
bdesham@gmail.com | AIM: bdesham128 | Jabber: same as e-mail
He has all the virtues I dislike and none of the vices I admire.
— Winston Churchill (attributed)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация