Converting an HTML Page to PHP

Another way to create a PHP page is to rename an .htm or .html page to have a .php file extension. Caution should be taken if this is the desired method. A BOM, which is desirable in some HTML files, can be detrimental to reliably executing PHP in some cases.

In this exercise, you will convert an HTML file to PHP in Expression Web 2 and ensure that there’s no BOM.

Note

Converting an HTML Page to PHP

USE the CH12 sample site you modified in the previous exercise.

OPEN the CH12 site if it isn’t already open.

  1. In the Folder List, expand the inc folder, and double-click the convertme.html file to open it for editing. Right-click the Code pane, and then click ...

Get Microsoft® Expression® Web 2 Step by Step now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.