I have simple page written in php which works like single page application, i just use include_once
when user want to go to other subpage.Sub pages are pure html but they are saved with extension .php
My hosting owner said they are moving to php 5.5, so i have checked on wamp with php 5.5 if page works and it does. But on hosting it cause internal server error, even simple page with php_info()
cause it, php versin is set by .httaccess
file
<Files *.php>
ForceType application/x-httpd-php55
</Files>
Is this something wrong with provider apache configuration? If so what it might be? I'm using standard php.ini generated file.
AddHandler application/x-httpd-php55 .php .phtml
instead? (without the<Files> ... </Files>
)ForceType
just fudges the MIME type, it doesn't actually affect the PHP interpreter I don't think. AddHandler however would invoke the PHP 5.5 interpreter - and if it's not yet installed Apache won't know how to handle the file and you'll get the download prompt.