PHP


  <?echo("Hello, World!");>

submitted by: Scott Raymond (sraymond@sunflower.org)


<?php
   echo "<html>
   <head>
       <title>Hello World Page</title>
   </head>
   <body>
       Hello World!
   </body>
</html>"
?>

submitted by: Ian Eiloart (iane@sussex.ac.uk)


<?php
    while (1) {
        echo "Hello, World\n";
    }
?>

PHP stops the execution of the neverending loop "while(1)" after 30 seconds with an error message. To avoid that, we can write (for example):

<?php
    while (i<500) {
        echo "Hello, World\n";
        i++;
    }
?>

submitted by: Mehrdad Mirreza