If you are facing any issues while parsing .html, .htm, .jsp, .js and other extension files through php, add the below code in the .htaccess file under the diretcory
AddHandler application/x-httpd-php5 .js .html .htm .jsp >> Server with php5
AddHandler application/x-httpd-php4 .js .html .htm .jsp >> Server with php4
If you want to limit the parsing just for a file add the code below
For php5
<FilesMatch “filename.js”>
AddHandler application/x-httpd-php5 .js
</FilesMatch>
For php4
<FilesMatch “filename.js”>
AddHandler application/x-httpd-php4 .js
</FilesMatch>























