public function initURL($url) { $contents = file_get_contents($url); $lines = explode("\n", $contents); return $this->initLines($lines); }