public static function fromUrl($url) { $profile = new self(); $profile->url = $url; if ($profile->analyseMeta($url)) { // Obtain the page export $content = TikiLib::lib('tiki')->httprequest($url); $content = html_entity_decode($content); $content = str_replace("\r", '', $content); // Find content start (strip headers) $begin = strpos($content, "\n\n"); if (!$begin) { return false; } $content = substr($content, $begin + 2); $profile->loadYaml($content); } return $profile; }