Click to See Complete Forum and Search --> : whats the difference between .php and .html
b1b2b3
11-30-2003, 10:40 PM
I have seen lots of web pages that have been named index.php rather then index.html.
I would like to know what the difference is and whether these people have certain features on that page so it needs to be called .php instead of .html.
Just a simple explanation would be ok.
Thanks
You asked for simple, so that's what you get... ;)
Pages with a .php extention will be processed as PHP, and thus can contain PHP code. Pages with a .html extention generally are not processed as PHP (they can be made to, if one wants to) and cannot contain PHP code.
dreamcatcher
12-01-2003, 12:56 AM
You can edit your .htaccess file so that your server will parse .html files for PHP content. Think its something like:
AddType application/x-httpd-php .php .html
Although I`m not 100% sure.
:confused:
Yep, if you are on an Apache server that should work...
Originally posted by pyro
(they can be made to, if one wants to)
I think I'd just leave it as .php though...