|
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)
[Back to original message]
|