I am not able to find a code to filter this in PHP..
I do have multiple urls for example :
www.google.com
www.twiter.com
www.facebook.com
www.youtube.com
www.techcrunch.com/webroot-brightcloud/
www.mashable.com/hello-how-are-you/
www.yahoo.com
www.msn.com
what I want is I need to filter domains with sub directories or pages. here in example techcrunch.com and mashable.com need to remove from final list as they do have sub pages.
The above is an example so any domains with sub pages or sub directories need to be remove from list.
How do we do it in PHP
Any Ideas??