class ultimate{ var $minlength; var $minoc; function getUrl($url) { return file_get_contents($url); } //parse tags function (extracting title,description , keywords of the page) function _parseTags($page) { $page=strtolower($page); $title = $description = $keywords = ''; if (preg_match('/<title>(.*)<\/title>/i',$page,$ar)) $title = $ar[1]; if (preg_match('/<meta name="description" content="(.*)"/i',$page,$ar)) $description = $ar[1]; if (preg_match('/<meta name="keywords" content="(.*)"/i',$page,$ar)) $keywords = $ar[1]; $res = array( 'title'=>$title, 'description'=>$description, 'keywords'=>$keywords, ); return $res; } // _parseTags PHP: Can any one tell me how can u use content from database instead of using return file_get_contents($url); to parse content from the given url. I have the content stored in a variable $webpage but how can i replace it with file_get_contents($url);