- 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> - Create a web application called "hello_world.php" which contains in the body:
<?php
$myvar = "Hello World!";
echo $myvar;
?>
What this Blog is About
Sunday, May 17, 2009
Exercise 6: Some server practice with PHP
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment