Guber-X Posted June 24, 2012 Share Posted June 24, 2012 So what I am wanting to do is detecting for Active websites that I have made for my portfolio website. basically something like check for URL address and if it does not return the same address it will be marked as Not Active, if it does return with the same address it will be marked as Active... anyone understand my idea? I just need some help pointed in the right direction for coding this out. if you have any questions just ask please. -Thnx Quote Link to comment https://forums.phpfreaks.com/topic/264702-detect-active-websites/ Share on other sites More sharing options...
darkfreaks Posted June 24, 2012 Share Posted June 24, 2012 something like this is what i think you are looking for $url = 'http://www.example.com'; $handle = @fopen($url,'r'); if($handle !== false){ echo 'Exists'; } else{ echo "Doesn't"; } Quote Link to comment https://forums.phpfreaks.com/topic/264702-detect-active-websites/#findComment-1356655 Share on other sites More sharing options...
Guber-X Posted June 24, 2012 Author Share Posted June 24, 2012 ahahaa, well thank you very much darkfreaks. never even thought of @fopen Quote Link to comment https://forums.phpfreaks.com/topic/264702-detect-active-websites/#findComment-1356656 Share on other sites More sharing options...
darkfreaks Posted June 24, 2012 Share Posted June 24, 2012 let me know if it works for you and don't forget to mark topic solved (if they button is back yet) Quote Link to comment https://forums.phpfreaks.com/topic/264702-detect-active-websites/#findComment-1356659 Share on other sites More sharing options...
Guber-X Posted June 24, 2012 Author Share Posted June 24, 2012 yeah i was looking for the Topic Solved button and yes it works perfect Quote Link to comment https://forums.phpfreaks.com/topic/264702-detect-active-websites/#findComment-1356660 Share on other sites More sharing options...
jcbones Posted June 24, 2012 Share Posted June 24, 2012 If it is back, it is in the lower right hand corner of the page. Quote Link to comment https://forums.phpfreaks.com/topic/264702-detect-active-websites/#findComment-1356694 Share on other sites More sharing options...
darkfreaks Posted June 24, 2012 Share Posted June 24, 2012 it's not back i am sure they are working on a number of fixes though from what i read in the announcements section. Quote Link to comment https://forums.phpfreaks.com/topic/264702-detect-active-websites/#findComment-1356699 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.