We have already defined the name of the server side script function as visitorIP() inside the merhabadunya.xsl file. Now we need to code this function such that the IP address of the visitor is returned.
Luckily, tha Apache environment already have this info inside the array variable named $_SERVER ready for us..
The resulting content of the file named merhabadunya.php is below:?php
/* h_merhabadunya.php */ function visitorIP() { return $_SERVER['REMOTE_ADDR']; } ?>