PHP Tutorial Tutorials - First PHP Script - Hello World

First PHP Script - Hello, World!

PHP can be embedded within a normal HTML web page. We have create a php file when install php.

<html>
    <head><title>hello - lautturi.com</title>
    <body>
    <?php
        echo "Hello PHP!";
    ?>
    </body>
</html>

On this tutorial,We will focus on writing php code.

Create a new PHP file then input the following code:

<?php
    // Display Hello, world!
    echo "Hello, world!";
?>

Save this file as "01.php" in the folder D:\Apache24\htdocs\
Visit this URL: http://localhost/01.php to view the result.

Date:2019-08-31 11:40:54 From:www.Lautturi.com author:Lautturi