Ninjakreborn Posted August 5, 2009 Share Posted August 5, 2009 Is there a way that someone knows of to check the DMOZ directory for a specific site (dynamically) without having to create a site stripper? Or is there currently no way to do that? Quote Link to comment https://forums.phpfreaks.com/topic/168874-php-tell-if-a-site-is-on-dmoz/ Share on other sites More sharing options...
JsusSalv Posted August 5, 2009 Share Posted August 5, 2009 If you want to check manually, just use the following: http://search.dmoz.org/cgi-bin/search?search=domain.com Of course, substitute domain.com for whatever domain you want to check. For example: http://search.dmoz.org/cgi-bin/search?search=phpfreaks.com Are you after a PHP script that will do the above dynamically and return a value? You could take the above link and create a PHP script that will return a value based on whether a value was returned or not. Give a bit more info on what you're trying to do exactly so we can post better ideas/code. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/168874-php-tell-if-a-site-is-on-dmoz/#findComment-891037 Share on other sites More sharing options...
sKunKbad Posted August 5, 2009 Share Posted August 5, 2009 To build on what JsusSalv said, all you'd have to do is use filegetcontents, curl, or anything that will return the html from DMOZ, and then use a regular expression to search for your confirmation or lack of. DMOZ, ha! Quote Link to comment https://forums.phpfreaks.com/topic/168874-php-tell-if-a-site-is-on-dmoz/#findComment-891078 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.