AddHandler question?

AddHandler application/x-httpd-php .html

VS

AddHandler application/x-httpd-php5 .html

The only difference being the “5”. I’m attempting to parse php in HTML page without changing the file extensions. So is there any difference when using the “5”? Thanks!

There might be some kind of a “no fail fallback” built in. Where if the host has more than one version it uses the one you specify, otherwise the one it has.

Might be interesting to experiment on a dev server, but I don’t know if it would be wise to mess around on a live site for too long a time.

This is the answer I got from Hostgator…

(09:54:05 AM) Matthew We: That 5 is required there, yes. It may not work later on if the server is upgraded to PHP 6 somewhere down the line; however, that kind of change does not happen very often, and would generally only require a small change. Also, it’s almost certain that PHP 5 would still be on the server at that point, since there may be compatibility issues between scripts for PHP 5 and 6, so it would likely still work at that time.

Thanks! I see it suggested both ways. If I say php5 is that backwards compatible 10 years from now? Like what if my host starts using php 6 down the road.

I guess it depends on if you have PHP version 4 or PHP version 5

I don’t know if PHP 5 will accept the AddHandler without the 5, I suppose there’s a good chance it would, but if you know you have version 5 IMHO it would be best to use the php5 one.