Hi!
I'm a new DirectAdmin user, and I don't know how to instruct Apache to recognise PHP code embedded into HTML and JavaScript files (in addition to files with .php extension, recognise files with .html and .js extensions).
I've read the user manual, and I've tried 3 different methods in order to achieve this:
- With the "Apache handlers" option:
x-httpd-php php html js
- With .htaccess files:
AddType x-httpd-php .php .html .js
- With the "Mime Types" option:
application/x-httpd-php php html js
And no luck!
My hosting is using Apache 2.2.8 and PHP 5.2.5 with suPHP enabled.
I've searched through the forum too...
Thanks in advance
I'm a new DirectAdmin user, and I don't know how to instruct Apache to recognise PHP code embedded into HTML and JavaScript files (in addition to files with .php extension, recognise files with .html and .js extensions).
I've read the user manual, and I've tried 3 different methods in order to achieve this:
- With the "Apache handlers" option:
x-httpd-php php html js
- With .htaccess files:
AddType x-httpd-php .php .html .js
- With the "Mime Types" option:
application/x-httpd-php php html js
And no luck!
My hosting is using Apache 2.2.8 and PHP 5.2.5 with suPHP enabled.
I've searched through the forum too...
Thanks in advance