php - Programmatically Identify CMS by URL -
is there other way detect cms url? if yes, there available api in php o other language? site http://whatcms.org/ example of have in mind; how detection?
you check meta tag generator. cms have name , version advertised there.
this tag you're after.
<meta name="generator" content="joomla! - open source content management" />
this code try , find tag extract content
attribute.
$doc = new domdocument(); $doc->loadhtmlfile('http://joomla.org'); $xpath = new domxpath($doc); $generators = $xpath->query('//html/head/meta[@name="generator"]'); echo $generators->item(0)->getattribute('content');
this code echo's joomla! - open source content management
Comments
Post a Comment