How to include PHP code in .htm/.html pages?

In order to include and execute PHP code in .htm/.html pages, you should set PHP as the default handler for these pages. You can easily do this by adding the following line to your .htaccess file:

AddHandler application/x-httpd-php52 .php .htm .html

Of course, you should make sure that your PHP code is correct and is placed between the opening <?php and the closing ?> PHP tags.

  • 0 משתמשים שמצאו מאמר זה מועיל
?האם התשובה שקיבלתם הייתה מועילה

מאמרים קשורים

Can I use cURL with my account?

Yes, all of our servers have cURL enabled. The path to cURL is /usr/bin/curl .

Do you support installation and use of PHPBB?

We have one touch installs for XMB, PHPBB, and Invisionboard. Here are some links to some...

Do you support Python?

Yes, we do. The path to Python is /usr/bin/python .

Does WHW support PHP HTTP Authorization?

We do support the PHP HTTP Authorization and in order to enable it you need to add the following...

How do I install the CGI scripts generated?

You basically need a few things before you can get started: You will need a web host that...