In this tutorial you will run a simple text “Hello world” i.e. Your First PHP. Create a file named with myfirstpage.php and place it in your web server’s root directory i.e. DOCUMENT_ROOT with the following content:
<html>
<head>
<title>PHP: Hello world</title>
</head>
<body>
<?php echo 'Hello World'; ?>
</body>
</html>