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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -