Shary GUO’s Blog

Exercise 6

Posted by: Shary GUO on: 18/04/2009

Exercise 6: Some server practice with PHP


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;
?>

Leave a Reply

Calendar

April 2009
M T W T F S S
     
 12345
6789101112
13141516171819
20212223242526
27282930  

RSS Cpanil’s Blog

RSS Vu’s Blog

  • An error has occurred; the feed is probably down. Try again later.

RSS Dilini’s Blog