Homepage \ Movies \
Knowing (2009) Poster
Watch the Trailer
Peter Klaven is a successful real estate agent who, upon getting engaged to the woman of his dreams, Zooey, discovers, to his dismay and chagrin, that he has no male friend close enough to serve as his Best Man. Peter immediately sets out to rectify the situation, embarking on a series of bizarre and awkward "man-dates," before meeting Sydney Fife, a charming, opinionated man with whom he instantly bonds. But the closer the two men get, the more Peter's relationship with Zooey suffers, ultimately forcing him to choose between his fiancee and his new found "bro," in a story that comically explores what it truly means to be a "friend."
(.*)<\/title>/isU',$imdb_content); $director = strip_tags(get_match('/]*>Director:<\/h5>(.*)<\/div>/isU',$imdb_content)); $plot = get_match('/]*>Plot:<\/h5>(.*)<\/div>/isU',$imdb_content); $release_date = get_match('/]*>Release Date:<\/h5>(.*)<\/div>/isU',$imdb_content); $mpaa = get_match('/MPAA<\/a>:<\/h5>(.*)<\/div>/isU',$imdb_content); $run_time = get_match('/Runtime:<\/h5>(.*)<\/div>/isU',$imdb_content); //build content $content.= '

Film

'.$name.'

'; $content.= '

Director

'.$director.'

'; $content.= '

Plot

'.substr($plot,0,strpos($plot,''; $content.= '

Release Date

'.substr($release_date,0,strpos($release_date,''; $content.= '

MPAA

'.$mpaa.'

'; $content.= '

Run Time

'.$run_time.'

'; //$content.= '

Full Details

'.$url.'

'; echo $content; //gets the match content function get_match($regex,$content) { preg_match($regex,$content,$matches); return $matches[1]; } //gets the data from a URL function get_data($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); $data = curl_exec($ch); curl_close($ch); return $data; } ?>