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 Quote 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 (edited) 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"; } Edited September 23, 2013 by AbraCadaver Quote 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 Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.