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.
Was this answer helpful?
NO, there are no advertisements displayed other than what you place yourself.
Place your CGI programs in the cgi-bin directory. Be sure to upload them in ASCII mode. Make...
All CGI scripts should be placed in the CGI-BIN and set to chmod 755.
ALL cgi scripts MUST be chmod 755. This does not apply to PHP scripts. Just the scripts you place...
A command line tool for getting or sending files using URL syntax. Since CURL uses libcurl, it...