- 1). Open your HTML or text editor. Create a new file and save it as "greeting.php."
- 2). Insert the following example coding into the document:
"<html>
<head>
<title>Greeting</title>
</head>
<body>
<?php echo '<p>Greetings World Wide Web!</p>'; ?>
</body>
</html>" - 3). Save your document and upload the page to your server. Navigate to it in your browser.
- 4). View your source and locate the "<body>" section. Your code has been replaced with:
"<body>
<p>Greetings World Wide Web!</p>
</body>"
previous post