Create a PHP page

A PHP script block must begin with <?php and end with ?>. A PHP script block can appear anywhere in a PHP file.

The following is an example of a PHP script block:

<?php
echo "Hello World";
?>

To create a new PHP page

Do one of the following:

  • On the File menu, point to New, and then click PHP.

  • On the File menu, click New. In the New dialog box, on the Page tab, click General, then click PHP, and then click OK.

See also

Tasks

Set IntelliSense options for PHP
Author PHP by using IntelliSense
Change the color of PHP code
Insert a PHP script
Previewing a PHP page
Show or hide PHP formatting marks in Design view

Concepts

Using IntelliSense with PHP
Working with PHP sites

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.