Embed PHP into HTML

From Conservapedia
This is an old revision of this page, as edited by Ed Poor (talk | contribs) at 16:07, November 23, 2010. It may differ significantly from current revision.
Jump to navigation Jump to search

To embed PHP into HTML, simply enclose your PHP code in <?PHP and ?> tags like this:

<?PHP echo "Hello, world!"; ?>

You may have to configure your Apache server (or have your system administrator do it for you). Include this line in your server's httpd.conf file:

AddType application/x-httpd-php .html .htm