Friday 19 July 2013

Trying Out a Little PHP

6. Type <?php to tell the Web browser to start a PHP function and then
press Enter.

See the preceding section on starting and stopping PHP functions.

7. Type echo ‘<p>Testing my new PHP function</p>’; and then press Enter.

This is the function that you want PHP to execute on your Web page.

This particular function echoes the text “Testing my new PHP function” and displays it on your Web site.

8. Type ?> to tell the Web browser to end the PHP function and then
press Enter.

0 comments:

Post a Comment