simon26r Posted September 23, 2013 Share Posted September 23, 2013 Hello. Can anyone tell me what i might have done wrong in this code. Maybe there is a basic error <?php $ip=gethostbyname('www.utv.com') if($ip = 35.235.53.176) echo "Connection Is Set up"; } else echo "Connection Is Not Set UP"; } ?> Thanks in advance Link to comment https://forums.phpfreaks.com/topic/282391-whats-wrong-with-my-code/ Share on other sites More sharing options...
AbraCadaver Posted September 23, 2013 Share Posted September 23, 2013 Well, you didn't state why you think something is wrong with it (I assume it's not working), but: if($ip == '35.235.53.176') { echo "Connection Is Set up"; } else { echo "Connection Is Not Set UP"; } Link to comment https://forums.phpfreaks.com/topic/282391-whats-wrong-with-my-code/#findComment-1450915 Share on other sites More sharing options...
simon26r Posted September 23, 2013 Author Share Posted September 23, 2013 thank you.. sorry for acting like a noob, but was posting for a friend. Ill get some more info if he as a problem Thanks AbraCadaver Link to comment https://forums.phpfreaks.com/topic/282391-whats-wrong-with-my-code/#findComment-1450918 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.