Learning PHP and MySQL

Example 03-02 Adding PHP Code to an HTML File

<html>
    <
head>
        <
title>Hello World</title>
    </
head>
    <
body>
        echo(
"<p>Now I have something to say.</p>");
    </
body>
</
html>

This should be saved out with the .php extension, not the .html extension.

Posted by on 07/06 at 01:41 PM

Next entry: Example 03-03 Calling echo() and print()

Previous entry: Welcome to the O'Reilly Learning PHP & MySQL blog

<< Back to main