All please download the index.php file from this link https://dl.dropboxusercontent.com/u/55806732/index.php Please run it the function getip() is not working. I have found out the reason. there is an invisible character. Solution: Please have closer look ,there is some space after "$_SERVER['REMOTE_ADDR'];" and it is also not "white space".If we remove that space then everything goes fine.
Question : I just need to know what is that invisible character, and how can i avoid these kind of errors in future? Is it depends on the IDE we are using.? What i can do if a page contains more than thousands of these entries?
<?php
function getip()
{
$dp = $_SERVER['REMOTE_ADDR'];
echo $dp;
}
getip();
?>