1. In this exercise with can call up and examine some environment variables on the server. The code below has the UNIX environment variable for storing your remote Internet address. UNIX environment variable are recognised by the use of upper case letters. Try the same code by replacing with $REMOTE_ADDR $SERVER_NAME, or $PHP_SELF

<HTML>

<HEAD>

</HEAD>

<BODY>

<?php

echo “You are connected from: “,$REMOTE_ADDR;

echo “<BR>”;

?>

</BODY>

</HTML>

 

2. Create a web application called “hello_world.php” which contains in the body:

<?php

$myvar = “Hello World!”;

echo $myvar;

?>