I have this code on php document
<?php echo '<script type="text/javascript">
document.write( geoip_city() );
</script>' ?>
after open in browser it returns your city name but on
WebClient client = new WebClient();
string client2 = client.DownloadString("http://www.mywebsite/ip2.php");
MessageBox.Show(client2);
it returns the source code. Why does this happen?
I am using this script for geolocation.