Wednesday, March 25, 2009

Exercise 6: Some Server Practice with PHP

1. Replacement on $Remote_Addr, $Server_Name, $PHP_SELF

I found in the study guide , the php scripts did not work on my windows XP, Appache2,2 with PHP 5.2 version. However, when I searched on net and it suggests, to put the syntax with a $_SERVER[variable] in the scripts then all the above pre-defined variables are working fine.
a. $Remote_Addr


b. $Server_Name



c. $PHP_Self



2. Helloworld.php

No comments:

Post a Comment