Solved

Regex in php

Posted on 2009-04-12
10
1,335 Views
Last Modified: 2012-05-06
Hi all,

I have some HTML I need to get some information from. I'm guessing I need to use regex for this.

To confirm i need the show summery and the show casts. Please note that will not be house specific it will be for many shows.

The actual page is here: http://www.tvrage.com/house

this information needs to be put into a database.

You will see the HTML below.

Many Thanks
Billy
==============================================================================================================

First bit of info i need: episode summary

==============================================================================================================

<div style='display:none' id='sft_1'>As an infectious disease specialist, <b>Dr. Gregory House</b> (<a href='http://www.tvrage.com/person/id-30836/Hugh+Laurie' target='_blank'>Hugh Laurie</a>) is a brilliant diagnostician who loves the challenges of the medical puzzles he must solve in order to save lives. House solves the inexplicable cases that other doctors cannot understand.<br>

<br>

House isn't alone in this quest. His team includes neurologist <b>Dr. Eric Foreman</b> (<a href='http://www.tvrage.com/person/id-31686/Omar+Epps' target='_blank'>Omar Epps</a>), a neurologist with a troubled youth and a desire to avoid becoming as abrasive as House; immunologist <b>Dr. Allison Cameron</b> (<a href='http://www.tvrage.com/person/id-28684/Jennifer+Morrison' target='_blank'>Jennifer Morrison</a>) - who sometimes cares too much and has conflicting feelings about House; and Dr<b>. Robert Chase</b> (<a href='http://www.tvrage.com/person/id-31685/Jesse+Spencer' target='_blank'>Jesse Spencer</a>), a specialist in intensive care who has lived a very privileged life. House's good (and possibly only) friend <b>Dr. James Wilson</b> (<a href='http://www.tvrage.com/person/id-31687/Robert+Sean+Leonard' target='_blank'>Robert Sean Leonard</a>) is an oncology specialist, who has to help and stand up for House on a regular basis, while trying to get him to face a few harsh truths.<br>
 

<br>

House must also deal with his boss, <b>Lisa Cuddy</b> (<a href='http://www.tvrage.com/person/id-31684/Lisa+Edelstein' target='_blank'>Lisa Edelstein</a>) who, while often opposing House's unconventional methods, must admit that he is the best doctor on her staff. When a patients life hangs in the balance, House will do anything, including breaking the law, taking risks other doctors would not take, and sometimes even going as far as actually interacting with a patient. Houses methods may be controversial but his results speak for themselves.<br>

<br>

Inconsistencies with his team forced House to hire a new batch of doctors. This year House used and elimination process and the end resulted in hiring, <b>Dr. Lawrence Kutner</b> (<a href='http://www.tvrage.com/person/id-11806/Kal+Penn' target='_blank'>Kal Penn</a>), <b>Dr. Remy Hadley</b> (<a href='http://www.tvrage.com/person/id-51856/Olivia+Wilde' target='_blank'>Olivia Wilde</a>), and <b>Dr. Christopher Taub</b> (<a href='http://www.tvrage.com/person/id-4259/Peter+Jacobson' target='_blank'>Peter Jacobson</a>). Although his old team no longer takes orders from House they're still around to throw in their professional knowledge when need is dire. Together they will continue to solve cases most doctors can't.
 

<br>

<a onclick="javascript: hideFull('sht_1','sft_1');" href='javascript:void(0);' style='cursor: pointer;'>[-] Hide Full Summary</a>

</div>

<div style='' id='sht_1'>As an infectious disease specialist, <b>Dr. Gregory House</b> (<a href='http://www.tvrage.com/person/id-30836/Hugh+Laurie' target='_blank'>Hugh Laurie</a>) is a brilliant diagnostician who loves the challenges of the medical puzzles he must solve in order to save lives. House solves the inexplicable cases that other doctors cannot understand.<br>

<br>

House isn't alone in this quest. His team includes neurologist <b>Dr. Eric Foreman</b> (<a href='http://www.tvrage.com/person/id-31686/Omar+Epps' target='_blank'>Omar Epps</a>), a neurologist with a troubled youth and a desire to avoid becoming as abrasive as House; immunologist <b>Dr. Allison Cameron</b> (<a href='http://www.tvrage.com/person/id-28684/Jennifer+Morrison' target='_blank'>Jennifer Morrison</a>) - who sometimes cares too much and has conflicting feelings about House; and Dr<b>. Robert Chase</b> (<a href='http://www.tvrage.com/person/id-31685/Jesse+Spencer' target='_blank'>Jesse Spencer</a>), a specialist in intensive care who has lived a very privileged life. House's good (and possibly only) friend <b>Dr. James Wilson</b> (<a href='http://www.tvrage.com/person/id-31687/Robert+Sean+Leonard' target='_blank'>Robert Sean Leonard</a>) is an oncology specialist, who has to help and stand up for House on a regular basis, while trying to get him to face a few harsh truths.<br>
 

<br>

House must also deal with his boss, <b>Lisa Cuddy</b> (<a href='http://www.tvrage.com/person/id-31684/Lisa+Edelstein' target='_blank'>Lisa Edelstein</a>) who, while often opposing House's unconventional methods, must admit that he is the best doctor on her staff. When a patients life hangs in the balance, House will do anything, including breaking the law, taking risks other doctors would not take, and sometimes even going as far as actually

<br>

<a onclick="javascript: showFull('sft_1','sht_1');" style='cursor: pointer;' href='javascript: void(0);'>[+] Show Full Summary</a>

</div>
 
 
 
 
 
 
 
 
 
 
 

==============================================================================================================

Second bit of info i need: Character Info

==============================================================================================================

</tr><tr  id='iconn3' ><td><table width='100%'><tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Hugh Laurie');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-30836/Hugh+Laurie' >Hugh Laurie</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Gregory House</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5572'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Lisa Edelstein');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-31684/Lisa+Edelstein' >Lisa Edelstein</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Lisa Cuddy</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5497'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Omar Epps');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-31686/Omar+Epps' >Omar Epps</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Eric Foreman</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5502'>Character Guide</a></div></td></tr>
 

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Jennifer Morrison');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-28684/Jennifer+Morrison' >Jennifer Morrison</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Allison Cameron</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5496'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Jesse Spencer');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-31685/Jesse+Spencer' >Jesse Spencer</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Robert Chase</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5495'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Robert Sean Leonard (1)');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-31687/Robert+Sean+Leonard' >Robert Sean Leonard (1)</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. James Wilson</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5494'>Character Guide</a></div></td></tr>
 

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Kal Penn');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-11806/Kal+Penn' >Kal Penn</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Lawrence Kutner (ep. 80-106; Recurring Previously)</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5553'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Olivia Wilde');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-51856/Olivia+Wilde' >Olivia Wilde</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Remy Hadley ("Thirteen") (ep. 80+; Recurring Previously)</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5500'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Peter Jacobson (1)');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-4259/Peter+Jacobson' >Peter Jacobson (1)</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Christopher Taub (ep. 80+; Recurring Previously)</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5501'>Character Guide</a></div></td></tr>
 

<tr><td height='5' class='nomarg' colspan='3'><font style='font-size: 1px'><hr class='nomarg'></font></td></tr>

<tr><td colspan='3'><div id='div_float' class='main' ><form name='from_cform'><select name='cguide' onChange="if ( this.options[this.selectedIndex].value != '' ) { jumptolink(document.from_cform.cguide); }">
 
 
 
 
 
 
 
 

==============================================================================================================

Orginal HTML

==============================================================================================================

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=charset=UTF-8">

<meta name="robots" content="index,follow">

 

<meta name="verify-v1" content="Qj0Nd4447CRnKMAYPi/U0VUliPclQnc4prf73NUzqQ0=" />
 

<meta name='description' content='"House" General Info @ TVRage.com, the best source for any "House" related info: Episode Guide, Air Dates, Cast/Crew & Guest Star Information, Reviews, News, Forums and more...' />

<meta name='keywords' content='House TV Show, House Television Show, House Episode Guide, House Episode List, House cast, House crew, House guest stars, House episodes, House writers, House information, House forums, House reviews, House Reference, House Character Guide, House merchandise, House, House FOX, Scripted, Drama, Medical, Mystery, Hugh Laurie, Lisa Edelstein, Omar Epps, Jennifer Morrison, Jesse Spencer, Robert Sean Leonard (1), Kal Penn, Olivia Wilde, Peter Jacobson (1), Dr House, Dr. House, House, M.D., ÔÐÕá' />
 

<title>House TV Show - House Television Series ::  House TV Series :: Summary/Synopsis</title>
 
 
 

<link rel='stylesheet' href='/_layout_v3/css/style.css' />
 
 

<script src="/speller/spellChecker.js"></script>

<script type="text/javascript" src="/_layout_v3/scripts/tvrage.js"></script>

<script type="text/javascript" src="/_layout_v3/scripts/showhide.js"></script>

<script type="text/javascript">
 

function addBookmark(title, url) {
 

        if (window.sidebar) { // firefox

window.sidebar.addPanel(title, 'http://www.tvrage.com/sidebar.php',"");

        } else if( document.all ) { //MSIE

                window.external.AddFavorite( url, title);

        } else {

               alert("Sorry, your browser doesn't support this");

        }

}

 
 

function hideFull(mid,mid2) {

el1 = document.getElementById(mid);

el1.style.display = "";

el2 = document.getElementById(mid2);

el2.style.display = "none";
 

}

function showFull(mid,mid2) {

el1 = document.getElementById(mid);

el1.style.display = "";

el2 = document.getElementById(mid2);

el2.style.display = "none";
 

}
 

function showToolTip2(e,text){

if(document.all)e = event;

var obj = document.getElementById('normal_tooltip');

obj.innerHTML = text;

obj.style.display = 'block';

var st = Math.max(document.body.scrollTop,document.documentElement.scrollTop);

if(navigator.userAgent.toLowerCase().indexOf('safari')>=0)st=0;

var mid = obj.offsetWidth/2;

var leftPos = e.clientX - mid;

var mid2 = obj.offsetHeight+st;

if(leftPos<0)leftPos = 0;

obj.style.left = leftPos + 'px';

obj.style.top = e.clientY - obj.offsetHeight - 5 + st + 'px';

}

function hideToolTip2() {

document.getElementById('normal_tooltip').style.display = 'none';

}

function SwitchDisplay(obj,id2)

{

        var el = document.getElementById(obj);

        if(el.style.display == "none") {

                document.getElementById(id2).innerHTML='<font size=2><b>-</b></font>';
 

                el.style.display = "";

        } else {

                document.getElementById(id2).innerHTML='<b>+</b>';

                el.style.display =  "none";
 

        }
 

}

function SwitchHeader(obj,id2,sz)

{

if ( sz == null ) { var sz = 26; }

        var el = document.getElementById(obj);

        if(el.style.display == "none") {

                document.getElementById(id2).innerHTML='<img src="/_layout_v3/misc/minus.gif" border="0" width="' + sz +'">';

                el.style.display = "";

		scookie(obj,'',-1);

        } else {

                document.getElementById(id2).innerHTML='<img src="/_layout_v3/misc/plus.gif" border="0" width="' + sz +'">';

                el.style.display =  "none";

		scookie(obj,1,0);

        }

}

function scookie(name,value,days)

{

        if (days) {

                var date = new Date();

                date.setTime(date.getTime()+(days*24*60*60*1000));

                var expires = "; expires="+date.toGMTString();

        }

        else var expires = "";

        document.cookie = name+"="+value+expires+"; path=/";

}

function gcookie(name) {

        var nameEQ = name + "=";

        var ca = document.cookie.split(';');

        for(var i=0;i < ca.length;i++) {

                var c = ca[i];

                while (c.charAt(0)==' ') c = c.substring(1,c.length);

                if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);

        }

        return null;

}
 

</script>
 

<link rel="stylesheet" type="text/css" href="/_layout_v3/ratings/vote.css" />
 

<script type="text/javascript" src="http://www.tvrage.com/_layout_v3/scripts/milonic_src.js"></script>
 

<script type="text/javascript">

if(ns4)_d.write("<scr"+"ipt type=text/javascript src=http://www.tvrage.com/_layout_v3/scripts/mmenuns4.js><\/scr"+"ipt>");

else _d.write("<scr"+"ipt type=text/javascript src=http://www.tvrage.com/_layout_v3/scripts/mmenudom.js><\/scr"+"ipt>");

</script>

<script type="text/javascript" src="/_layout_v3/scripts/tooltips/tooltips.js"></script>

<script>

fixMozillaZIndex=true;

_menuCloseDelay=500;

_menuOpenDelay=150;

_subOffsetTop=0;

_subOffsetLeft=0;

with(menuStyle=new mm_style()){

bordercolor="#999999";

borderstyle="solid";

borderwidth="1";

fontfamily="Verdana, Tahoma, Arial";

fontsize="75%";

fontstyle="normal";

headerbgcolor="#ffffff";

headercolor="#000000";

offbgcolor="#eeeeee";

offcolor="#000000";

onbgcolor="#E0DADC";

oncolor="#69444B";

outfilter="randomdissolve(duration=0.1)";

overfilter="Fade(duration=0);Alpha(opacity=90);Shadow(color=#777777', Direction=135, Strength=3)";

padding="3";

menubgimage="/_layout_v3/menu/newmenu.gif";

pagebgcolor="#eeeeee";

pagecolor="#black";

separatorcolor="#999999";

separatorsize="2";

subimage="http://www.tvrage.com/_layout/new/black_7x7.gif";

subimagepadding="2";

}
 

BmenuStyle=new copyOf(menuStyle)

BmenuStyle.bgimage="/_layout_v3/misc/infobg.jpg";
 
 
 

with(milonic=new menuname("topmenu_0")) {

style=menuStyle;
 

aI("text=Home;url=/;");

aI("text=Info Center;url=/infocenter.php;");

aI("text=Full Schedule;url=/fullschedule.php;");

aI("text=Watch Episodes;url=/watch_episodes.php;");

aI("text=;url=/recent_episodes.php;");

aI("text=Status Updates;url=/status_update.php;");

aI("text=Countdown;url=/countdown.php;");

aI("text=Upcoming DVDs;url=/merchandise.php;");

aI("text=Latest Quizzes;url=/latest_quizzes.php;");

aI("text=Stats;url=/stats_center.php;");

aI("text=Invite Friends;url=/invite_friends.php;");

aI("text=Become Editor;url=/editor.php;");
 

} 
 

with(milonic=new menuname("topmenu_1")) {

style=menuStyle;
 

aI("text=Recent TV Forums;url=/tv_forums.php;");

aI("text=Browse TV Forums;url=/browse_tv_forums.php;");

aI("text=Browse People Forums;url=/browse_people_forums.php;");

aI("text=Browse Shows;url=/all.php;");

aI("text=Browse People;url=/allpeople.php;");

aI("text=Browse Networks;url=/networks.php;");

aI("text=Birthdays;url=/bdays.php;");

aI("text=Passed Away;url=/passedaway.php;");
 

} 
 

with(milonic=new menuname("topmenu_2")) {

style=menuStyle;
 

aI("text=Latest TV News;url=/tvnews.php;");

aI("text=Latest People News;url=/peoplenews.php;");

aI("text=Latest Network News;url=/networknews.php;");

aI("text=Site News;url=/sitenews.php;");

aI("text=Announcements;url=/announcements.php;");
 

} 
 

with(milonic=new menuname("topmenu_3")) {

style=menuStyle;
 

aI("text=RSS Feeds;url=/rss.php;");

aI("text=Full Week RSS;url=/weekrss.php;");

aI("text=ICAL Feed;url=/ical.php;");

aI("text=XML Feeds;url=/xmlfeeds.php;");

aI("text=Tools;url=/tools.php;");
 

} 
 

with(milonic=new menuname("topmenu_4")) {

style=menuStyle;
 

aI("text=Member List;url=/membersearch.php;");

aI("text=Latest Blogs;url=/latest_blogs.php;");

aI("text=Show Reviews;url=/latest_show_reviews.php;");

aI("text=Episode Reviews;url=/latest_episode_reviews.php;");

aI("text=;url=/vote_episodes.php;");

aI("text=Editor List;url=/editor_list.php;");
 

} 
 
 

with(milonic=new menuname("homelinks")){

style=menuStyle;
 

aI("text=About;showmenu=topmenu_0;url=/index.php;");

aI("text=Browse;showmenu=topmenu_1;url=/index.php;");

aI("text=News;showmenu=topmenu_2;url=/index.php;");

aI("text=Feeds;showmenu=topmenu_3;url=/index.php;");

aI("text=Members;showmenu=topmenu_4;url=/index.php;");
 
 
 

}
 
 

with(milonic=new menuname("forumdata")){

style=menuStyle;

overflow="scroll";

aI("status=Go to forums home;text=Forums;url=forums.php;");

aI("showmenu=forums_index;text=Forum Index;");

aI("status=Search in forums;text=Search In Forums;url=forums_search.php;");

}

with(milonic=new menuname("forums_index")){

style=menuStyle;

overflow="scroll";

aI("text=Books<br>&bull; Last Post: 6D, 7H ago;url=forums_main.php?mid=24;")

aI("text=Bug Reporting<br>&bull; Last Post: 10H, 25M ago;url=forums_main.php?mid=2;")

aI("text=Help &amp; Support<br>&bull; Last Post: 5H, 51M ago;url=forums_main.php?mid=5;")

aI("text=Members' Lounge<br>&bull; Last Post: 1M ago;url=forums_main.php?mid=12;")

aI("text=Movies<br>&bull; Last Post: 2D, 20H ago;url=forums_main.php?mid=16;")

aI("text=Music<br>&bull; Last Post: 10H, 33M ago;url=forums_main.php?mid=18;")

aI("text=New Members Orientation<br>&bull; Last Post: 8D ago;url=forums_main.php?mid=23;")

aI("text=People<br>&bull; Last Post: 2D, 15H ago;url=forums_main.php?mid=19;")

aI("text=Recreation Forum<br>&bull; Last Post: 39H, 53M ago;url=forums_main.php?mid=26;")

aI("text=Sports<br>&bull; Last Post: 2D, 19H ago;url=forums_main.php?mid=22;")

aI("text=Suggestions<br>&bull; Last Post: 21H, 9M ago;url=forums_main.php?mid=4;")

aI("text=TV Talk<br>&bull; Last Post: 11H, 57M ago;url=forums_main.php?mid=9;")

aI("text=TVRage Announcements<br>&bull; Last Post: 7D, 18H ago;url=forums_main.php?mid=25;")

aI("text=TVRage Wants You<br>&bull; Last Post: 15D, 14H ago;url=forums_main.php?mid=28;")

aI("text=Video Games<br>&bull; Last Post: 44D, 10H ago;url=forums_main.php?mid=17;")

}
 
 

with(milonic=new menuname("scheduleblock")){

style=menuStyle;

aI("status=TV Schedule;text=Schedule;url=/schedule.php;");

aI("status=Full TV Schedule;text=Full Schedule;url=/fullschedule.php;");
 

}
 

with(milonic=new menuname("visitor_main")){

style=menuStyle;

aI("status=My Settings;text=My Settings;url=/visitors.php?page=mysettings;");

aI("text=My Schedule;url=/visitors.php?page=myschedule;");

aI("showmenu=fav_shows;text=Favorite Shows;url=/visitors.php?page=myshows;");
 

}
 

with(milonic=new menuname("searchmenu")){

style=menuStyle;

aI("text=Shows & People;url=/search.php");

aI("text=Main Forum;url=/forums_search.php");

aI("text=Character Search;url=/character_search.php");

aI("text=Title Search;url=/title_search.php");

aI("text=Suggest Shows Searches;url=/suggest_search.php");

aI("text=Suggest People Searches;url=/suggest_search_people.php");
 
 

}

with(milonic=new menuname("fav_shows")){

style=menuStyle;

overflow="scroll";
 

aI("text=&nbsp;;type=header")

aI("text=&bull; Manage Favorite Shows;url=/visitors.php?page=myshows;")
 

}
 

with(milonic=new menuname("flists")){

style=menuStyle;

aI("status=All Shows;text=All Shows;url=/all.php");

aI("status=All People;text=All People;url=/allpeople.php");

aI("status=Networks;text=All Networks;url=/networks.php");
 
 

}

</script>

<style type='text/css'>

#menucontainer

	{

		margin:  0px 0px 0px 0px;

		padding:  0px 0px 0px 0px;

		width: 100%;

		float: left;

		text-align: left;

		background-color: #943939;

	}

	

	#menucontainer ul { padding: 0px;  }

	#menucontainer ul li { display: inline; } 

	

	#menucontainer ul

	{

		height: 15px;

		margin: 0px 0px 0px 0px;

		padding: 0px 0px 0px 0px;

		color: #FFFFFF;

		font-family: tahoma, verdana, geneva, arial, helvetica, sans-serif;

		font-size: 11px;

		border-left: 1px solid #94B473;

		letter-spacing: 1px;

		font-weight: bold;

	}

	

        #menucontainer ul li:first-child

	{

		padding: 0px 0px;

		background-color: #943939;

		color: #FFFFFF;

		text-decoration: none;

		float: left;

                border-left: 1px solid #94B473;

	}
 

	#menucontainer ul li a
 
 

	{

		padding: 0px 7px;

		background-color: #943939;

		color: #FFFFFF;

		text-decoration: none;

		float: left;

                border-right: 1px solid #94B473;

	}
 

	

	#menucontainer ul li a:hover

	{

		background-color: #521923;

		color: #FFFFFF;

	}
 

        #menucontainer ul a#eempty, #menucontainer ul a#eempty:link, #menucontainer ul a#eempty:visited {

                background-color: #553322;

		font-size: 13px;

                color: #FFFFFF;

		font-weight: bolder;
 

		text-decoration: line-through;

                /*color: #FFFFFF;*/

        }

        #menucontainer ul a#eempty:hover {
 

                background-color: #553322;

                font-size: 13px;

                color: #FFFFFF;

                font-weight: bolder;
 

                text-decoration: line-through;

	}
 

	#menucontainer ul a#current, #menucontainer ul a#current:link, #menucontainer ul a#current:visited { 

                background-color: #CC3333;

                color: #FFFFFF;

	} 

	#menucontainer ul a#current:hover {

/*		text-transform: uppercase;*/

}

        #menucontainer ul a#mspecial, #menucontainer ul a#mspecial:link, #menucontainer ul a#mspecial:visited,#menucontainer ul a#mspecial:hover {

                background-color: #426208;

                color: #FFFFFF;

        }
 

</style>
 
 
 
 

<style type='text/css'>
 

#normal_tooltip{

        padding: 2px 2px 2px 2px;

        position:absolute;

        display:none;

        width: auto;

        font-size: 13px;

        z-index: 5;
 

        cursor :  pointer;

        background: white;

        border: 1px solid black;

}

a.wtlink:link,a.wtlink:visited,a.wtlink:active{color: white; font-weight: bold; }

a.wtlink:hover {text-decoration: none;  color: #69b521;}

a.gtlink:link,a.gtlink:visited,a.gtlink:active{color: #69b521; font-weight: bold; }

a.gtlink:hover {text-decoration: none;  color: #69b521;}

#mmenu a:link,#mmenu a:visited,#mmenu a:active{color: white; font-weight: bold; }

#mmenu a:hover {text-decoration: none;  color: #69b521;}
 

#bookmarks, #bookmarks2 {

	font-size:9px;

	font-family:Verdana, Arial, Helvetica, sans-serif; 
 

}

#bookmarks2 a,#bookmarks2 a:link,#bookmarks2 a:visited,#bookmarks2 a:active,#bookmarks2 a:hover {

color: #FFFFFF;

text-decoration: none;

font-weight:bold;

outline:none;

}

#bookmarks a,#bookmarks a:link,#bookmarks a:visited,#bookmarks a:active,#bookmarks a:hover {

color: #000000;

text-decoration: none;

font-weight:bold;

outline:none;

}
 
 
 

textarea.post{

        width: 99%;

        height: 120px;

        overflow:auto;

}

form {

padding: 0px 0px 0px 0px;

margin: 0px 0px 0px 0px;

}

.nomarg {

padding: 0px 0px 0px 0px;

margin: 0px 0px 0px 0px;

}

#full_div2 {

    height:100%;

    width:100%;

text-align: center;
 

	position: relative;

margin: 0px 0px 0px 0px;

}

#full_div2 .botfl {

display: block;

    height:auto;

    width:auto;

   float: center;

   vertical-align: bottom;

  text-align: center;

   bottom: -1px;

   position: absolute;

	

	

}

#full_div2 .topfl {

display: block;

    height:auto;

    width:auto;

   float: center;

   vertical-align: top;

  text-align: center;
 

}
 

#full_div {

    height:100%;

    width:100%;

	max-height: inherit;

	max-width: inherit;

margin: 0px 0px 0px 0px;

 float:top-left;
 

}

#full_div.main {

    height:100%;

    width:100%;

border: 1px solid black;

}

#div_float {

display: block;

    float:left;

    vertical-align: top;

    text-align:left;

}

#div_floatr {

    float:right;

    vertical-align: top;

    text-align: right;

}
 

#div_float.main  {

    height:auto;

    width:auto;

    margin-left:2px;
 

}

#div_floatr.main  {

    height:auto;

    width:auto;

    margin-right:2px;

}

#div_floatrf {

    float:right;

    vertical-align: top;

    text-align: right;

    height:auto;

    width:auto;

}
 

#div_floattr {

    float:top-right;

    vertical-align: top;

    text-align: right;

}
 

#div_floattr.main  {

    height:auto;

    width:auto;

    margin-right:2px;

}
 

#div_floatb {

display: block;

    vertical-align: bottom;

    float:bottom-right;

}
 

#div_floatb.main  {

    height:auto;

    width:auto;

    margin-left:2px;

}

#div_floatt {

position: relative;

    float:top;

    vertical-align: top;

    text-align:left;

}
 

#div_floatt.main  {

    height:auto;

    width:auto;

    margin-left:2px;
 

}
 

</style>
 

   

    <link rel="alternate" type="application/rss+xml" title="US Schedule Today" href="http://www.tvrage.com/myrss.php"/>
 

<link rel="alternate" type="application/rss+xml" title="UK Schedule Today" href="http://www.tvrage.com/myrss.php?country=UK"/>

    <link rel="alternate" type="application/rss+xml" title="US Schedule Yesterday" href="http://www.tvrage.com/myrss.php?date=yesterday"/>

<link rel="alternate" type="application/rss+xml" title="UK Schedule Yesterday" href="http://www.tvrage.com/myrss.php?country=UK&date=yesterday"/>
 

</head>

<body bgcolor='#202020' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' >
 

<table cellspacing='0' cellpadding='0' align='center'><tr><td valign='top' valign='center'>

<table cellspacing='0' cellpadding='0' align='center'><tr><td><table  width="801" height="182" border="0"  cellpadding="0" cellspacing="0">

<tr>

  <td colspan="5"><img src="/_layout_v3/visitor_images/header_visitors_01.jpg" width="800" height="8" alt=""></td>

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="1" height="8" alt=""></td>

</tr>

<tr>
 

  <td colspan="2" rowspan="2"><img src="/_layout_v3/visitor_images/header_visitors_02.gif" width="220" height="51" alt=""></td>

  <td colspan="3"><img src="/_layout_v3/visitor_images/header_visitors_03.jpg" width="580" height="11" alt=""></td>

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="1" height="11" alt=""></td>

</tr>

<tr>

  <td rowspan="2">

  <img src="/_layout_v3/visitor_images/header_visitors_04.jpg" width="86" height="62" alt=""></td>

  <td colspan="2" background="/_layout_v3/visitor_images/header_visitors_05.jpg" width="494" height="40"><table cellspacing='0' cellpadding='0' width='100%'>

<tr>

<td><script>

with(milonic=new menuname("Main Menu")){

style=menuStyle;

alwaysvisible="true";

orientation="horizontal";

position="relative";

aI("showmenu=homelinks;status=Back To Home Page;text=Home;url=/index.php;");

aI("status=List All;text=List;url=/all.php;showmenu=flists;");

aI("showmenu=forumdata;text=Forums;url=/forums.php;");

aI("status=Search TVRage;text=Search;showmenu=searchmenu;url=/search.php;");

aI("status=TV Schedule;text=Schedule;url=/schedule.php;showmenu=scheduleblock");

aI("text=Visitor Func.;url=/visitors.php;");

aI("text=Register;url=/register.php;");

aI("text=Login;url=/login.php;");

aI("status=Full TV Calendar;text=Cal;url=http://calendar.tvrage.com/;");
 

}

drawMenus();

</script></td><td><a href=''>&nbsp;</td></tr>
 

</table></td>

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="1" height="40" alt=""></td>

</tr>

<tr>  <form action='/search.php' method='GET' name='sform'>

  <td colspan="2" background="/_layout_v3/visitor_images/header_visitors_06.jpg" width="220" height="22">

  <input type='submit' value='Search!' class='inputbox'>

  <input class='inputbox' type='text' name='search' size='25'></td></form>

  <td colspan="2" background="/_layout_v3/visitor_images/header_visitors_07.jpg" width="494" height="22" align='left'>&nbsp</td>

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="1" height="22" alt=""></td>

</tr>
 

<tr>
 

  <td>

  <img src="/_layout_v3/visitor_images/header_visitors_08.jpg" width="20" height="4" alt=""></td>

  <td colspan="3" rowspan="3" background="/_layout_v3/visitor_images/header_visitors_09.jpg" width="759" height="94" style='text-align: center'><script language="JavaScript" type="text/javascript">

if (typeof(gnm_ord)=='undefined') gnm_ord=Math.random()*10000000000000000; if (typeof(gnm_tile) == 'undefined') gnm_tile=1;

document.write('<scr'+'ipt language="JavaScript" src="http://n4403ad.doubleclick.net/adj/gn.tvrage.com/ros;sect=ros;sz=728x90;tile='+(gnm_tile++)+';ord=' + gnm_ord + '?" type="text/javascript"></scr' + 'ipt>');

</script></td>

  <td rowspan="4"><a href='/register.php?from_ad=1'  onmouseover="showToolTip2(event,'Click To Remove Big Ad');return false;" onmouseout="hideToolTip2();" ><img src="/_layout_v3/visitor_images/header_visitors_10.jpg" width="21" height="100" border="0"></a></td>

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="1" height="4" alt=""></td>

</tr>
 

<tr>

  <td><a href='/register.php?from_ad=1'  onmouseover="showToolTip2(event,'Click To Remove Big Ad');return false;" onmouseout="hideToolTip2();" ><img src="/_layout_v3/visitor_images/header_visitors_11.jpg" width="20" height="71" border='0'></a></td>
 

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="1" height="71" alt=""></td>

</tr>

<tr>

  <td rowspan="2"><a href='/register.php?from_ad=1'  onmouseover="showToolTip2(event,'Click To Remove Big Ad');return false;" onmouseout="hideToolTip2();" ><img src="/_layout_v3/visitor_images/header_visitors_12.jpg" width="20" height="25" border='0'></a></td>

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="1" height="19" alt=""></td>

</tr>

<tr>

  <td colspan="3"><img src="/_layout_v3/visitor_images/header_visitors_13.jpg" width="759" height="6" alt=""></td>

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="1" height="6" alt=""></td>

</tr>
 

<tr>
 

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="20" height="1" alt=""></td>

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="200" height="1" alt=""></td>

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="86" height="1" alt=""></td>

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="473" height="1" alt=""></td>

  <td><img src="/_layout_v3/visitor_images/spacer.gif" width="21" height="1" alt=""></td>

  <td></td>

</tr>

</table></td></tr>

<tr>

  <td style='background: url(/_layout_v3/misc/infobg.jpg) repeat;' height='20'  align='center' valign='middle'><table width='100%'  cellspacing='0' cellpadding='0'>
 

<tr>

<td style='text-align: center; ;width: 16%; '><a  style='background: url(/_layout_v3/misc/infobg.jpg) repeat; padding: 1px 3px 1px 3px; border: #000000 1px outset;' OnMouseOver="this.style.border='#000000 1px inset'" OnMouseOut="this.style.border='#000000 1px outset'" class='wtlink'  href='/status_update.php'>Canceled/Renewed</a></td>

<td style='text-align: center; ;width: 18%; '><a  style='background: url(/_layout_v3/misc/infobg.jpg) repeat; padding: 1px 3px 1px 3px; border: #000000 1px outset;' OnMouseOver="this.style.border='#000000 1px inset'" OnMouseOut="this.style.border='#000000 1px outset'" class='wtlink'  href='/watch_episodes.php'>Watch Episodes</a></td>

<td style='text-align: center; ;width: 22%; '><a  style='background: url(/_layout_v3/misc/infobg.jpg) repeat; padding: 1px 3px 1px 3px; border: #000000 1px outset;' OnMouseOver="this.style.border='#000000 1px inset'" OnMouseOut="this.style.border='#000000 1px outset'" class='wtlink'  href='/recent_episodes.php'>Recently Aired Episodes</a></td>

<td style='text-align: center; ;width: 15%; '><a  style='background: url(/_layout_v3/misc/infobg.jpg) repeat; padding: 1px 3px 1px 3px; border: #000000 1px outset;' OnMouseOver="this.style.border='#000000 1px inset'" OnMouseOut="this.style.border='#000000 1px outset'" class='wtlink'  href='/latest_quizzes.php'>Latest Quizzes</a></td>

<td style='text-align: center; ;width: 14%; '><a  style='background: url(/_layout_v3/misc/infobg.jpg) repeat; padding: 1px 3px 1px 3px; border: #000000 1px outset;' OnMouseOver="this.style.border='#000000 1px inset'" OnMouseOut="this.style.border='#000000 1px outset'" class='wtlink'  href='/tvnews.php'>TV News</a></td>

<td style='text-align: center; ;width: 15%; '><a  style='background: url(/_layout_v3/misc/infobg.jpg) repeat; padding: 1px 3px 1px 3px; border: #000000 1px outset;' OnMouseOver="this.style.border='#000000 1px inset'" OnMouseOut="this.style.border='#000000 1px outset'" class='wtlink'  href='/survey.php'>TVRage Survey</a></td>

</tr>

</table>

</td></tr></table><font style='font-size: 1px'>&nbsp;<br></font><table width='801' align='center' border='0' cellpadding='0' cellspacing='0'  bgcolor='#F2F2EE'>

<tr>
 

  <td width='145' height='357' valign='top' cellpadding='0' cellspacing='0' bgcolor='#E6E6E6' ><table width='145' border='0' cellpadding='0' cellspacing='0'>

<tr style='cursor: pointer;' onclick="SwitchMenu('s1','hide1')">

  <td width='37' background='/_layout_v3/images/menus_r1_c1.jpg' height='20'><span style='font-size: 13px; text-decoration: bold; color: white; padding-left: 8px;' id='hide1'>[&ndash;]</span></td>

  <td background='/_layout_v3/images/menus_r1_c2.jpg' width='108'><font color='white' style='font-size: 12px'><b>Show Menu</b></font></td>

</tr>

<tr>

  <td colspan='2' style='padding-left: 2px;'><div id='s1' >&bull; <a  class='lmenu'  href='/House/'>General Info</a><br>

&bull; <a  class='lmenu'  href='/House/forum/'><font size='2'><b>Forum</b></font></a><br>
 

&bull; <a  class='lmenu'  href='/House/episode_list/'>Episode List</a><br>

&bull; <a  class='lmenu'  href='/House/watch_episodes'>Watch Episodes</a>  (3)<br>

&bull; <a  class='lmenu'  href='/House/episode_guide/'>Episode Guide</a><br>

&bull; <a  class='lmenu'  href='javascript: void();'  onclick="javascript: if (window.peguide) { window.peguide.close(); } peguide = window.open('/House/printable/','peguide','height=500,width=640,status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes'); window.peguide.focus();"  ><font color='blue'>Printable Guide</font></a><br>

&bull; <a  class='lmenu'  href='/House/season_guide/'>Season Guide</a> (4)<br>
 

&bull; <a  class='lmenu'  href='/House/other/full_cast_list'>Full Cast List</a><br>

&bull; <a  class='lmenu'  href='/House/other/full_crew_list'>Full Crew List</a><br>

&bull; <a  class='lmenu'  href='/House/other/recurring'>Recurring Guests</a><br>

&bull; <a  class='lmenu'  href='/House/other/schar'>Search Characters</a><br>

&bull; <a  class='lmenu'  href='/House/merchandise/'>Merchandise</a> (5)<br>
 

&bull; <a  class='lmenu'  href='/House/character_guide/'>Character Guide</a> (9)<br>

&bull; <a  class='lmenu'  href='/House/news/'>News</a> (9)<br>

&bull; <a  class='lmenu'  href='/House/show_tidbits/'>Show Tidbits</a> (1)<br>

&bull; <a  class='lmenu'  href='/House/gallery'>Gallery</a> (13)<br>
 

&bull; <a  class='lmenu'  href='/House/themes'>Theme Song</a> (1)<br>

&bull; <a  class='lmenu'  href='/House/show_slang/'>Show Slang</a> (3)<br>

&bull; <a  class='lmenu'  href='/House/other/reviews/'>Reviews</a> (4)<br>

&bull; <a  class='lmenu'  href='/House/other/ep_reviews/'>Ep. Reviews</a> (8)<br>
 

&bull; <a  class='lmenu'  href='/House/other/stats/'>Stats</a><br>

&bull; <a  class='lmenu'  href='/House/other/links/'>Links</a> (1)<br>

&bull; <a  class='lmenu'  href='/House/other/similar_shows/'>Similar Shows</a> (5)<br>

&bull; <a  class='lmenu'  href='/House/contribute'>Contribute</a><br>

&bull; <a  class='lmenu'  href='/House/other/questions'>Submit Trivia</a></div></td>
 

</tr></table><font style='font-size: 4px'>&nbsp;<br></font>

<table width='145' border='0' cellpadding='0' cellspacing='0'>

<tr style='cursor: pointer;' onclick="SwitchMenu('s2','hide2')">

  <td width='37' background='/_layout_v3/images/menus_r1_c1.jpg' height='20'><span style='font-size: 13px; text-decoration: bold; color: white; padding-left: 8px;' id='hide2'>[&ndash;]</span></td>

  <td background='/_layout_v3/images/menus_r1_c2.jpg' width='108'><font color='white' style='font-size: 12px'><b>Merchandise</b></font></td>

</tr>

<tr>

  <td colspan='2' style='padding-left: 2px;'><div id='s2' ><span  onmouseover="showToolTip2(event,'Season 1 (Anamorphic)');return false;" onmouseout="hideToolTip2();"  style='width: 100%; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull; <a href='http://www.amazon.com/exec/obidos/ASIN/B001QE99AQ/tvrage-20'>Season 1 (Anamorphic)</a></span><span  onmouseover="showToolTip2(event,'Season 4');return false;" onmouseout="hideToolTip2();"  style='width: 100%; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull; <a href='http://www.amazon.com/exec/obidos/ASIN/B001A4VH2U/tvrage-20'>Season 4</a></span><span  onmouseover="showToolTip2(event,'Season 3');return false;" onmouseout="hideToolTip2();"  style='width: 100%; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull; <a href='http://www.amazon.com/exec/obidos/ASIN/B000R9YLKY/tvrage-20'>Season 3</a></span><span  onmouseover="showToolTip2(event,'Season 2');return false;" onmouseout="hideToolTip2();"  style='width: 100%; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull; <a href='http://www.amazon.com/exec/obidos/ASIN/B000FVQLIO/tvrage-20'>Season 2</a></span><span  onmouseover="showToolTip2(event,'Season 1');return false;" onmouseout="hideToolTip2();"  style='width: 100%; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull; <a href='http://www.amazon.com/exec/obidos/ASIN/B0009WPM1Q/tvrage-20'>Season 1</a></span></div></td>
 

</tr></table><font style='font-size: 4px'>&nbsp;<br></font>

<table width='145' border='0' cellpadding='0' cellspacing='0'>

<tr style='cursor: pointer;' onclick="SwitchMenu('s3','hide3')">

  <td width='37' background='/_layout_v3/images/menus_r1_c1.jpg' height='20'><span style='font-size: 13px; text-decoration: bold; color: white; padding-left: 8px;' id='hide3'>[+]</span></td>

  <td background='/_layout_v3/images/menus_r1_c2.jpg' width='108'><font color='white' style='font-size: 12px'><b>Empty Sections</b></font></td>

</tr>

<tr>

  <td colspan='2' style='padding-left: 2px;'><div id='s3'  style='display: none;' >&bull; <a  class='lmenu'  href='/House/show_faq/'>Show FAQ</a> (0)<br>
 

&bull; <a  class='lmenu'  href='/House/other/awards/'>Awards</a> (0)<br>

&bull; <a  class='lmenu'  href='/House/other/quiz/'>Quiz</a> (0)<br>

&bull; <a  class='lmenu'  href='/House/other/character_quiz/'>Personality Quiz</a> (0)<br>

&bull; <a  class='lmenu'  href='/House/other/polls/'>Polls</a> (0)<br>
 

</div></td>

</tr></table><font style='font-size: 4px'>&nbsp;<br></font>

<table width='145' border='0' cellpadding='0' cellspacing='0'>

<tr style='cursor: pointer;' onclick="SwitchMenu('s4','hide4')">

  <td width='37' background='/_layout_v3/images/menus_r1_c1.jpg' height='20'><span style='font-size: 13px; text-decoration: bold; color: white; padding-left: 8px;' id='hide4'>[+]</span></td>

  <td background='/_layout_v3/images/menus_r1_c2.jpg' width='108'><font color='white' style='font-size: 12px'><b>Show Contribs</b></font></td>

</tr>

<tr>

  <td colspan='2' style='padding-left: 2px;'><div id='s4'  style='display: none;' >&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/general_info'>General Info.</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/summary'>Show Summary</a><br>
 

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/foreign_summary'>Foreign Summary</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/show_image'>Main Image</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/cast'>Main Cast</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/crew'>Main Crew</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/cguide'>Character Guide</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/season_guide'>Season Guide</a><br>
 

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/merchandise'>Merchandise</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/show_tidbits'>Show Tidbits</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/show_faq'>Show FAQ</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/show_slang'>Slang</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/akas'>AKAs</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/questions'>Show Q&A</a><br>
 

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/news'>News</a></div></td>

</tr></table><font style='font-size: 4px'>&nbsp;<br></font>

<table width='145' border='0' cellpadding='0' cellspacing='0'>

<tr style='cursor: pointer;' onclick="SwitchMenu('s5','hide5')">

  <td width='37' background='/_layout_v3/images/menus_r1_c1.jpg' height='20'><span style='font-size: 13px; text-decoration: bold; color: white; padding-left: 8px;' id='hide5'>[+]</span></td>

  <td background='/_layout_v3/images/menus_r1_c2.jpg' width='108'><font color='white' style='font-size: 12px'><b>Episode Contribs</b></font></td>

</tr>

<tr>

  <td colspan='2' style='padding-left: 2px;'><div id='s5'  style='display: none;' >&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episodes/add'>Create New Episode</a><br>
 

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episodes/update'>Update Episode</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episodes/delete'>Delete Episode</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/guest_stars/'>Guest Stars</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_crew/'>Episode Crew</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/alt_episodes/'>Alternate Airdates</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_summary/'>Episode Summary</a><br>
 

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_recap/'>Episode Recap</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_foreign_summary/'>Foreign Ep. summary</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_foreign_recap/'>Foreign Ep. Recaps</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_music/'>Featured Songs</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_screencaps/'>Episode Screencaps</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_extras/notes/'>Episode Notes</a><br>
 

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_extras/quotes/'>Episode Quotes</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_extras/goofs/'>Episode Goofs</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_extras/cultural/'>Cultural References</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_extras/references/'>Episode References</a><br>

&bull; <a  class='lmenu'  rel="nofollow" href='/edit/shows/3908/episode_extras/analysis/'>Analysis</a></div></td>

</tr></table><font style='font-size: 4px'>&nbsp;<br></font>

<table width='145' border='0' cellpadding='0' cellspacing='0'><form action='/login.php' method='POST'>
 

<tr style='cursor: pointer;' onclick="SwitchMenu('s6','hide6')">

  <td width='37' background='/_layout_v3/images/menus_r1_c1.jpg' height='20'><span style='font-size: 13px; text-decoration: bold; color: white; padding-left: 8px;' id='hide6'>[&ndash;]</span></td>

  <td background='/_layout_v3/images/menus_r1_c2.jpg' width='108'><font color='white' style='font-size: 12px'><b>Login</b></font></td>

</tr>

<tr>

  <td colspan='2' style='padding-left: 2px;'><div id='s6' ><input type='hidden' name='curr_page' value='/house'>

<b>Username: </b><br>

<input type='text' name='login_name' class='inputbox' size='18'><br>

<b>Password: </b><br>
 

<input type='password' name='login_pass' class='inputbox' size='18'><br>

<label for='remember_me'><input type='checkbox'  id='remember_me'  name='remember_me'> <b>Remember Me</b></label><br>

<input type='submit' class='inputbox' value='Login'><br><br>

&bull; <a href='/forgotp.php'>Forgot Password</a><br>

&bull; <a href='/register.php'>Free Sign Up</a>

</div></td>

</tr></form></table><font style='font-size: 4px'>&nbsp;<br></font>

<br><div align='center'>

<script type="text/javascript"><!--

google_ad_client = "pub-4503439170693445";

/* 120x90, gemaakt 16-12-08 */

google_ad_slot = "9984900592";

google_ad_width = 120;

google_ad_height = 90;

//-->

</script>

<script type="text/javascript"

src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
 

</script></div></td>

  <td width='655' valign='top' style='padding-left: 5px; padding-top: 2px;' class='editcenterbox'><h3 align='center' class='nomarg'>House (3208 Fans) </h3><hr> <table width='632' align='center' cellpadding='1' cellspacing='0' style=' border: 1px solid black;'>

<tr bgcolor='#521923' >

  <td colspan='2' align='center' ><table cellspacing='0' cellpadding='0' width='100%'><tr><td width='130' align='center'><b>(<a href='/mytvrage.php?page=my_layout&sid=' class='gtlink'><font size='2'>Change Layout</a>)</td><td align='center'><font size='2'  color='white'><b>House</b></font></td>

<td width='130' align='right'>&nbsp;</td></tr></table></td>

</tr>

<tr >

  <td  bgcolor='#521923' width='80'  style='border-right: 1px solid black; '  align='right'><font color='white'><b>Main: </b></td>
 

  <td style='background-color: #943939; border-bottom: 1px solid white; '><div id="menucontainer">

<ul><li id='active'  ><a href='/House'  id='current'  >Home</a></li>

<li  ><a  href='/House/episode_list'>Ep. List</a></li>

<li  ><a  href='/House/episode_guide'>Ep. Guide</a></li>

<li  ><a href="/House/forum" id='mspecial'>Forum</a></li>

<li  ><a  href='/House/news'>News</a></li>

<li  ><a href="/House/contribute"  >Contribute</a></li>

<li  ><a href='/House/other/stats'   >Stats</a></li>
 

</ul></div></td>

</tr>

<tr >

  <td  bgcolor='#521923' width='80'  style='border-right: 1px solid black; '  align='right'><font color='white'><b>Show Info: </b></td>

  <td style='background-color: #943939; border-bottom: 1px solid white; '><div id="menucontainer">

<ul><li  ><a href='/House/watch_episodes'  >Watch Eps  (3)</a></li>

<li  ><a href='/House/show_tidbits'  >Tidbits</a></li>

<li  ><a href='/House/show_slang'  >Slang</a></li>

<li  ><a href='/House/other/full_cast_list'  >Cast</a></li>

<li  ><a href='/House/other/full_crew_list'  >Crew</a></li>
 

<li  ><a href='/House/other/recurring'  >Recurring</a></li>

<li  ><a href='/House/merchandise'   onmouseover="showToolTip2(event,'Merchandise');return false;" onmouseout="hideToolTip2();" >Merch</a></li>

<li  ><a href='/House/character_guide'   onmouseover="showToolTip2(event,'Character Guides');return false;" onmouseout="hideToolTip2();" >Chars.</a></li>
 

</ul></div></td>

</tr>

<tr >

  <td  bgcolor='#521923' width='80'  style='border-right: 1px solid black; '  align='right'><font color='white'><b>Show Info: </b></td>

  <td style='background-color: #943939; border-bottom: 1px solid white; '><div id="menucontainer">

<ul><li  ><a href='/House/season_guide'   onmouseover="showToolTip2(event,'Season Guide');return false;" onmouseout="hideToolTip2();" >S. Guides</a></li>
 

<li  ><a href='/House/gallery'  >Gallery</a></li>

<li  ><a href='/House/themes'  >Themes</a></li>

<li  ><a href='/House/other/similar_shows'  >Similar</a></li>

<li  ><a href='/House/other/links'  >Links</a></li>

<li  ><a href='/House/other/reviews'  >Reviews</a></li>

<li  ><a href='/House/other/ep_reviews'  >Ep. Reviews</a></li>
 

</ul></div></td>

</tr>

<tr >

  <td  bgcolor='#521923' width='80'  style='border-right: 1px solid black; '  align='right'><font color='white'><b>Show Info: </b></td>
 

  <td style='background-color: #943939; border-bottom: 1px solid white; '><div id="menucontainer">

<ul><li  ><a href='/House/other/questions'  >Submit Trivia</a></li>
 

</ul></div></td>

</tr>
 

</table><hr>

<table align='center' width='632' cellspacing='0' cellpadding='0'><tr>

  <td background='/_layout_v3/buttons/title.jpg' height='39' width='631' align='center'>

<table width='100%' cellpadding='0' cellspacing='0'>

<tr >

<td align='right' width='90'  style='cursor: pointer;' onclick="SwitchHeader('iconn1','ihide1')" >&nbsp;<span style='font-size: 15px;   font-weight: bold; color: black; padding-left: 8px;' id='ihide1'><img src='/_layout_v3/misc/minus.gif'></span></td>

<td align='center'  style='cursor: pointer;' onclick="SwitchHeader('iconn1','ihide1')" ><h5 class='nospace'><a name='summary'>&nbsp;</a>"House" Summary</h5></td>
 

<td align='left' width='90' >&nbsp;</td></tr></table></td>

</tr>

<tr  id='iconn1' >

  <td><table width='100%' cellspacing='0' cellpadding='0'><tr><td><table align='right' style='padding-left: 10px;padding-bottom: 2px; float: top;' ><tr><td valign='top'>

<img src="http://images.tvrage.com/shows/4/3908.jpg" border='0' >

</td></tr></table><div style='display:none' id='sft_1'>As an infectious disease specialist, <b>Dr. Gregory House</b> (<a href='http://www.tvrage.com/person/id-30836/Hugh+Laurie' target='_blank'>Hugh Laurie</a>) is a brilliant diagnostician who loves the challenges of the medical puzzles he must solve in order to save lives. House solves the inexplicable cases that other doctors cannot understand.<br>

<br>

House isn't alone in this quest. His team includes neurologist <b>Dr. Eric Foreman</b> (<a href='http://www.tvrage.com/person/id-31686/Omar+Epps' target='_blank'>Omar Epps</a>), a neurologist with a troubled youth and a desire to avoid becoming as abrasive as House; immunologist <b>Dr. Allison Cameron</b> (<a href='http://www.tvrage.com/person/id-28684/Jennifer+Morrison' target='_blank'>Jennifer Morrison</a>) - who sometimes cares too much and has conflicting feelings about House; and Dr<b>. Robert Chase</b> (<a href='http://www.tvrage.com/person/id-31685/Jesse+Spencer' target='_blank'>Jesse Spencer</a>), a specialist in intensive care who has lived a very privileged life. House's good (and possibly only) friend <b>Dr. James Wilson</b> (<a href='http://www.tvrage.com/person/id-31687/Robert+Sean+Leonard' target='_blank'>Robert Sean Leonard</a>) is an oncology specialist, who has to help and stand up for House on a regular basis, while trying to get him to face a few harsh truths.<br>
 

<br>

House must also deal with his boss, <b>Lisa Cuddy</b> (<a href='http://www.tvrage.com/person/id-31684/Lisa+Edelstein' target='_blank'>Lisa Edelstein</a>) who, while often opposing House's unconventional methods, must admit that he is the best doctor on her staff. When a patients life hangs in the balance, House will do anything, including breaking the law, taking risks other doctors would not take, and sometimes even going as far as actually interacting with a patient. Houses methods may be controversial but his results speak for themselves.<br>

<br>

Inconsistencies with his team forced House to hire a new batch of doctors. This year House used and elimination process and the end resulted in hiring, <b>Dr. Lawrence Kutner</b> (<a href='http://www.tvrage.com/person/id-11806/Kal+Penn' target='_blank'>Kal Penn</a>), <b>Dr. Remy Hadley</b> (<a href='http://www.tvrage.com/person/id-51856/Olivia+Wilde' target='_blank'>Olivia Wilde</a>), and <b>Dr. Christopher Taub</b> (<a href='http://www.tvrage.com/person/id-4259/Peter+Jacobson' target='_blank'>Peter Jacobson</a>). Although his old team no longer takes orders from House they're still around to throw in their professional knowledge when need is dire. Together they will continue to solve cases most doctors can't.
 

<br>

<a onclick="javascript: hideFull('sht_1','sft_1');" href='javascript:void(0);' style='cursor: pointer;'>[-] Hide Full Summary</a>

</div>

<div style='' id='sht_1'>As an infectious disease specialist, <b>Dr. Gregory House</b> (<a href='http://www.tvrage.com/person/id-30836/Hugh+Laurie' target='_blank'>Hugh Laurie</a>) is a brilliant diagnostician who loves the challenges of the medical puzzles he must solve in order to save lives. House solves the inexplicable cases that other doctors cannot understand.<br>

<br>

House isn't alone in this quest. His team includes neurologist <b>Dr. Eric Foreman</b> (<a href='http://www.tvrage.com/person/id-31686/Omar+Epps' target='_blank'>Omar Epps</a>), a neurologist with a troubled youth and a desire to avoid becoming as abrasive as House; immunologist <b>Dr. Allison Cameron</b> (<a href='http://www.tvrage.com/person/id-28684/Jennifer+Morrison' target='_blank'>Jennifer Morrison</a>) - who sometimes cares too much and has conflicting feelings about House; and Dr<b>. Robert Chase</b> (<a href='http://www.tvrage.com/person/id-31685/Jesse+Spencer' target='_blank'>Jesse Spencer</a>), a specialist in intensive care who has lived a very privileged life. House's good (and possibly only) friend <b>Dr. James Wilson</b> (<a href='http://www.tvrage.com/person/id-31687/Robert+Sean+Leonard' target='_blank'>Robert Sean Leonard</a>) is an oncology specialist, who has to help and stand up for House on a regular basis, while trying to get him to face a few harsh truths.<br>
 

<br>

House must also deal with his boss, <b>Lisa Cuddy</b> (<a href='http://www.tvrage.com/person/id-31684/Lisa+Edelstein' target='_blank'>Lisa Edelstein</a>) who, while often opposing House's unconventional methods, must admit that he is the best doctor on her staff. When a patients life hangs in the balance, House will do anything, including breaking the law, taking risks other doctors would not take, and sometimes even going as far as actually

<br>

<a onclick="javascript: showFull('sft_1','sht_1');" style='cursor: pointer;' href='javascript: void(0);'>[+] Show Full Summary</a>

</div>
 

<br>&nbsp;</td></tr><tr><td align='right'><hr class='nomarg' style='border: 1px solid black;'><b>Summary Available In:</b> <u>English</u> | <a href='/House/?lang=sp'>Spanish</a></td></tr><tr><td align='center'><hr class='nomarg' style='border: 1px solid black;'><b>Watch The Most Recent Aired Episodes</b> <br><table align='center'><tr><td><a href='/House/episodes/783838/'>Season 5, Episode 19 :: Locked In</a></td><td>(Mar/30/2009)</td><td>--> <a href='/House/episodes/783838/?watch_episode=1'>Watch Episode</a></td></tr><tr><td><a href='/House/episodes/783533/'>Season 5, Episode 18 :: Here Kitty</a></td><td>(Mar/16/2009)</td><td>--> <a href='/House/episodes/783533/?watch_episode=1'>Watch Episode</a></td></tr><tr><td><a href='/House/episodes/702326/'>Season 5, Episode 6 :: Joy</a></td><td>(Oct/28/2008)</td><td>--> <a href='/House/episodes/702326/?watch_episode=1'>Watch Episode</a></td></tr></table></td></tr><tr><td align='center'><hr class='nomarg' style='border: 1px solid black;'><b>Theme Song</b><table valign='top' align='center'><tr>
 

  <td ><embed src="/_player/mediaplayer.swf"  width="250"  height="20" allowscriptaccess="always" allowfullscreen="true" flashvars="width=250&height=20&showdigits=1&duration=31&file=http%3A%2F%2Fthemes.tvrage.com%2F4%2F3908%2F12.mp3" /></embed></td>

  <td><b>Teardrop, by Massive Attack</b></td>

  <td>&nbsp;</td>

</tr></table></td></tr><tr><td align='center'><hr class='nomarg' style='border: 1px solid black;'><a href='/House/episode_list/all/?with_recap=1'>This Show Has 30 recaps</a></td></tr></table></td></tr><tr>

  <td background='/_layout_v3/buttons/title.jpg' height='39' width='631' align='center'>

<table width='100%' cellpadding='0' cellspacing='0'>

<tr >

<td align='right' width='90'  style='cursor: pointer;' onclick="SwitchHeader('iconn2','ihide2')" >&nbsp;<span style='font-size: 15px;   font-weight: bold; color: black; padding-left: 8px;' id='ihide2'><img src='/_layout_v3/misc/minus.gif'></span></td>

<td align='center'  style='cursor: pointer;' onclick="SwitchHeader('iconn2','ihide2')" ><h5 class='nospace'><a name='general_info'>&nbsp;</a>"House" Information</h5></td>

<td align='left' width='90' >&nbsp;</td></tr></table></td>
 

</tr><tr  id='iconn2' ><td><table><tr><td width='110' valign='top'><b>Latest Episode: </b></td><td><table cellspacing='0' cellpadding='0'><tr><td valign='top' width='250'><span  onmouseover="showToolTip2(event,'Simple Explanation (Apr/06/2009)');return false;" onmouseout="hideToolTip2();"  style='width: 250px; padding:0px 0px 0px 0px; font-size: 11px;  height: 12px;white-space: wrap;position: relative;display: block;overflow: hidden;'><a href='/House/episodes/783839/5x20'>106: 5x20 -- Simple Explanation</a> (Apr/06/2009) </span></td><td valign='top' style='padding-left: 3px;'><table  cellspacing='0' cellpadding='0'><tr><td valign='top'><div  class='ratingblock'>

<div id='unit_longid50' >

  <ul id='unit_ulid50' class='unit-rating' style='width:150px; border: 2px solid red;;'>

    <li class='current-rating' style='width:136px;'>Currently 9.1/10</li><li><a href='/House/?veid=783839&evote=1' title='1 out of 10' class='r1-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'1 out of 10');return false;" onmouseout="hideToolTip2();" >1</a></li><li><a href='/House/?veid=783839&evote=2' title='2 out of 10' class='r2-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'2 out of 10');return false;" onmouseout="hideToolTip2();" >2</a></li><li><a href='/House/?veid=783839&evote=3' title='3 out of 10' class='r3-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'3 out of 10');return false;" onmouseout="hideToolTip2();" >3</a></li><li><a href='/House/?veid=783839&evote=4' title='4 out of 10' class='r4-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'4 out of 10');return false;" onmouseout="hideToolTip2();" >4</a></li><li><a href='/House/?veid=783839&evote=5' title='5 out of 10' class='r5-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'5 out of 10');return false;" onmouseout="hideToolTip2();" >5</a></li><li><a href='/House/?veid=783839&evote=6' title='6 out of 10' class='r6-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'6 out of 10');return false;" onmouseout="hideToolTip2();" >6</a></li><li><a href='/House/?veid=783839&evote=7' title='7 out of 10' class='r7-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'7 out of 10');return false;" onmouseout="hideToolTip2();" >7</a></li><li><a href='/House/?veid=783839&evote=8' title='8 out of 10' class='r8-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'8 out of 10');return false;" onmouseout="hideToolTip2();" >8</a></li><li><a href='/House/?veid=783839&evote=9' title='9 out of 10' class='r9-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'9 out of 10');return false;" onmouseout="hideToolTip2();" >9</a></li><li><a href='/House/?veid=783839&evote=10' title='10 out of 10' class='r10-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'10 out of 10');return false;" onmouseout="hideToolTip2();" >10</a></li></ul></div></div></td><td style='padding-left: 4px;'><strong>9.1/10</strong></td></tr></table></td></tr></table></td>
 

<tr><td width='110' valign='top'><b>Next Episode: </b></td><td><span  onmouseover="showToolTip2(event,'Saviors (Apr/13/2009)');return false;" onmouseout="hideToolTip2();"  style='width: 100%; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'><a href='/House/episodes/1064795197/5x21'>107: 5x21 -- Saviors</a> (Apr/13/2009) </span></td>

<tr><td width='110' valign='top'><b>Ratings: </b></td><td><table  cellspacing='0' cellpadding='0'><tr><td valign='top'><div  class='ratingblock'>

<div id='unit_longid90' >

  <ul id='unit_ulid90' class='unit-rating' style='width:150px; border: 2px solid red;;'>

    <li class='current-rating' style='width:142px;'>Currently 9.5/10</li><li><a href='/House/?vote=1' title='1 out of 10' class='r1-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'1 out of 10');return false;" onmouseout="hideToolTip2();" >1</a></li><li><a href='/House/?vote=2' title='2 out of 10' class='r2-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'2 out of 10');return false;" onmouseout="hideToolTip2();" >2</a></li><li><a href='/House/?vote=3' title='3 out of 10' class='r3-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'3 out of 10');return false;" onmouseout="hideToolTip2();" >3</a></li><li><a href='/House/?vote=4' title='4 out of 10' class='r4-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'4 out of 10');return false;" onmouseout="hideToolTip2();" >4</a></li><li><a href='/House/?vote=5' title='5 out of 10' class='r5-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'5 out of 10');return false;" onmouseout="hideToolTip2();" >5</a></li><li><a href='/House/?vote=6' title='6 out of 10' class='r6-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'6 out of 10');return false;" onmouseout="hideToolTip2();" >6</a></li><li><a href='/House/?vote=7' title='7 out of 10' class='r7-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'7 out of 10');return false;" onmouseout="hideToolTip2();" >7</a></li><li><a href='/House/?vote=8' title='8 out of 10' class='r8-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'8 out of 10');return false;" onmouseout="hideToolTip2();" >8</a></li><li><a href='/House/?vote=9' title='9 out of 10' class='r9-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'9 out of 10');return false;" onmouseout="hideToolTip2();" >9</a></li><li><a href='/House/?vote=10' title='10 out of 10' class='r10-unit rater' rel='nofollow'  onmouseover="showToolTip2(event,'10 out of 10');return false;" onmouseout="hideToolTip2();" >10</a></li></ul></div></div></td><td style='padding-left: 4px;'><strong>9.5/10 (175 Votes cast)</td></tr></table></td>
 

</table>

<table width='100%' cellpadding='0' cellspacing='0'><tr><td valign='top'><table  cellspacing='0'><tr><td width='110' valign='top'><b>Reviews: </b></td><td><a href='/House/other/reviews/'>4 reviews available</a></td>

<tr><td width='110' valign='top'><b>Classification: </b></td><td>Scripted</td>

<tr><td width='110' valign='top'><b>Genre: </b></td><td>Drama | Medical | Mystery</td>

<tr><td width='110' valign='top'><b>Also Known As: </b></td><td>&bull; Dr House <i>(<font style='font-size: 12px;'>Used In <b>PL</b></font>)</i><br>
 

&bull; Dr. House <i>(<font style='font-size: 12px;'>Used In <b>DE</b></font>)</i><br>

&bull; House, M.D. (season 1), <i>(<font style='font-size: 12px;'>Used In <b>US</b></font>)</i><br>

&bull; ÔÐÕá <i>(<font style='font-size: 12px;'>Used In <b>IL</b></font>)</i><br>
 

</td>

<tr><td width='110' valign='top'><b>Status: </b></td><td>Returning Series</td>

<tr><td width='110' valign='top'><b>Network: </b></td><td><a href='/networks/US/FOX'>FOX</a> (<img width='15' height='10' style='border: 1px solid black;' src='http://images.tvrage.com/flags/us.gif'> USA)</td>

<tr><td width='110' valign='top'><b>Airs: </b></td><td>Mondays at 08:00 pm</td>

<tr><td width='110' valign='top'><b>Runtime: </b></td><td>60 Minutes</td>
 

<tr><td width='110' valign='top'><b>Premiere: </b></td><td>November 16, 2004</td>

<tr><td width='110' valign='top'><b>Color: </b></td><td>Color</td>

<tr><td width='110' valign='top'><b>Episode Order: </b></td><td>24</td>

</table></Td><td valign='top'></td></tr></table></td></tr><tr>

  <td background='/_layout_v3/buttons/title.jpg' height='39' width='631' align='center'>

<table width='100%' cellpadding='0' cellspacing='0'>

<tr >

<td align='right' width='90'  style='cursor: pointer;' onclick="SwitchHeader('iconn3','ihide3')" >&nbsp;<span style='font-size: 15px;   font-weight: bold; color: black; padding-left: 8px;' id='ihide3'><img src='/_layout_v3/misc/minus.gif'></span></td>

<td align='center'  style='cursor: pointer;' onclick="SwitchHeader('iconn3','ihide3')" ><h5 class='nospace'><a name='cast'>&nbsp;</a>"House" Cast</h5></td>
 

<td align='left' width='90' >&nbsp;</td></tr></table></td>

</tr><tr  id='iconn3' ><td><table width='100%'><tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Hugh Laurie');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-30836/Hugh+Laurie' >Hugh Laurie</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Gregory House</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5572'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Lisa Edelstein');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-31684/Lisa+Edelstein' >Lisa Edelstein</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Lisa Cuddy</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5497'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Omar Epps');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-31686/Omar+Epps' >Omar Epps</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Eric Foreman</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5502'>Character Guide</a></div></td></tr>
 

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Jennifer Morrison');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-28684/Jennifer+Morrison' >Jennifer Morrison</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Allison Cameron</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5496'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Jesse Spencer');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-31685/Jesse+Spencer' >Jesse Spencer</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Robert Chase</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5495'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Robert Sean Leonard (1)');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-31687/Robert+Sean+Leonard' >Robert Sean Leonard (1)</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. James Wilson</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5494'>Character Guide</a></div></td></tr>
 

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Kal Penn');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-11806/Kal+Penn' >Kal Penn</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Lawrence Kutner (ep. 80-106; Recurring Previously)</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5553'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Olivia Wilde');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-51856/Olivia+Wilde' >Olivia Wilde</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Remy Hadley ("Thirteen") (ep. 80+; Recurring Previously)</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5500'>Character Guide</a></div></td></tr>

<tr><td  valign='top' width='120'><span  onmouseover="showToolTip2(event,'Peter Jacobson (1)');return false;" onmouseout="hideToolTip2();"  style='width: 120px; padding:0px 0px 0px 0px; font-size: 11px;  height: 13px;white-space: wrap;position: relative;display: block;overflow: hidden;'>&bull;<i><a href='/person/id-4259/Peter+Jacobson' >Peter Jacobson (1)</a></i></span></td><td valign='top' width='20' style='padding-left: 10px; padding-right: 10px;'><b>played</b></td><td valign='top'><div id='div_float' class='main' style='width: 330px;'><i>Dr. Christopher Taub (ep. 80+; Recurring Previously)</i></div> <div id='div_floatr' class='main'><a href='/House/character_guide/?character=5501'>Character Guide</a></div></td></tr>
 

<tr><td height='5' class='nomarg' colspan='3'><font style='font-size: 1px'><hr class='nomarg'></font></td></tr>

<tr><td colspan='3'><div id='div_float' class='main' ><form name='from_cform'><select name='cguide' onChange="if ( this.options[this.selectedIndex].value != '' ) { jumptolink(document.from_cform.cguide); }">

<option value=''>[Select Character Guide]</option><option value='/House/character_guide/?character=5496'>Dr. Allison Cameron</option><option value='/House/character_guide/?character=5501'>Dr. Christopher Taub</option><option value='/House/character_guide/?character=5502'>Dr. Eric Foreman</option><option value='/House/character_guide/?character=5572'>Dr. Gregory House</option><option value='/House/character_guide/?character=5494'>Dr. James Wilson</option><option value='/House/character_guide/?character=5553'>Dr. Lawrence Kutner</option><option value='/House/character_guide/?character=5497'>Dr. Lisa Cuddy</option><option value='/House/character_guide/?character=5500'>Dr. Remy Hadley</option><option value='/House/character_guide/?character=5495'>Dr. Robert Chase</option></select> <input type='button' OnClick="jumptolink(document.from_cform.cguide);" value='Go!'></form></div>

</td></tr></table></td></tr>

<tr>

  <td background='/_layout_v3/buttons/title.jpg' height='39' width='631' align='center'>
 

<table width='100%' cellpadding='0' cellspacing='0'>

<tr >

<td align='right' width='90'  style='cursor: pointer;' onclick="SwitchHeader('iconn4','ihide4')" >&nbsp;<span style='font-size: 15px;   font-weight: bold; color: black; padding-left: 8px;' id='ihide4'><img src='/_layout_v3/misc/minus.gif'></span></td>

<td align='center'  style='cursor: pointer;' onclick="SwitchHeader('iconn4','ihide4')" ><h5 class='nospace'><a name='crew'>&nbsp;</a>"House" Crew</h5></td>

<td align='left' width='90' >&nbsp;</td></tr></table></td>

</tr><tr  id='iconn4' ><td><table cellspacing='0' width='100%'></td></tr><tr ><td width='150' valign='top' class='b2'>&bull; <b>Creator</td><td class='b2'><a href='/person/id-17176/David+Shore' >David Shore</a></td></tr><tr ><td width='150' valign='top' class='b2'>&bull; <b>Executive Producer</td><td class='b2'><a href='/person/id-31688/Bryan+Singer' >Bryan Singer</a><b><font size='2'>&nbsp;&nbsp|&nbsp;&nbsp;</font></b><a href='/person/id-84532/Katie+Jacobs' >Katie Jacobs</a><b><font size='2'>&nbsp;&nbsp|&nbsp;&nbsp;</font></b><a href='/person/id-17176/David+Shore' >David Shore</a><b><font size='2'>&nbsp;&nbsp|&nbsp;&nbsp;</font></b><a href='/person/id-71428/Paul+Attanasio' >Paul Attanasio</a><b><font size='2'>&nbsp;&nbsp|&nbsp;&nbsp;</font></b><a href='/person/id-30836/Hugh+Laurie' >Hugh Laurie</a><b><font size='2'>&nbsp;&nbsp|&nbsp;&nbsp;</font></b><a href='/person/id-29413/Daniel+Sackheim' >Daniel Sackheim</a><b><font size='2'>&nbsp;&nbsp|&nbsp;&nbsp;</font></b><a href='/person/id-31719/Thomas+L.+Moran' >Thomas L. Moran</a><b><font size='2'>&nbsp;&nbsp|&nbsp;&nbsp;</font></b><a href='/person/id-24241/Russel+Friend' >Russel Friend</a><b><font size='2'>&nbsp;&nbsp|&nbsp;&nbsp;</font></b><a href='/person/id-24242/Garrett+Lerner' >Garrett Lerner</a></td></tr><tr><td colspan='2' align='center'>&bull; <a href='/House/other/full_crew_list'>View full crew list</a></td></tr></table></td></tr>
 

</table><div align='center' ><font size='2' ><b>This guide is currently edited by <a href='/profiles/Gadfly'>Gadfly</a></b></font><br>

<a href='/challenge.php?sid=3908'>Takeover form</A>

</div></td>

</tr>

</table><table width='801' border='0' cellpadding='0' cellspacing='0' bgcolor='#120809' align='center'>

  <tr>
 

    <td width='801' height='20' align='center'><span class='style1'><a href='/contact.php'><font color='white'>Contact</font></a> | <a href='/infocenter.php?go=view&mid=1#vq27'><font color='white'>Terms Of Service</font></a> | <a href='/infocenter.php?go=view&mid=1#vq28'><font color='white'>Privacy Policy</font></a> | <a href='/infocenter.php?go=view&mid=1#vq29'><font color='white'>Copyright</font></a> | <a href='/rss.php'><font color='white'>RSS Feeds</font></a></span></td>
 

  </tr>

</table>
 

<table align='center' id='bookmarks2'>

<tr>

  <td width='90' align='right'><a href="http://digg.com/submit?phase=2&url=http%3A%2F%2Fwww.tvrage.com%2F"><img src='/_layout_v3/bookmarks/AddTo_Digg.gif' border='0' width="16" height="16"> Digg</a></td>

  <td width='90' align='center'><a href="http://www.furl.net/storeIt.jsp?t=TVRage.com%3A+Your+information+guide+for++TV+Shows+and+Actor%2FActrices%2C+you+can+also+Watch+Full+Episodes&u=http%3A%2F%2Fwww.tvrage.com%2F"><img src='/_layout_v3/bookmarks/AddTo_Furl.gif' border='0' width="16" height="16"> Furl</a></td>

  <td width='90' align='lcenter'><a href="http://del.icio.us/post?v=2&url=http%3A%2F%2Fwww.tvrage.com%2F&title=TVRage.com%3A+Your+information+guide+for++TV+Shows+and+Actor%2FActrices%2C+you+can+also+Watch+Full+Episodes"><img src='/_layout_v3/bookmarks/AddTo_Delicious.gif' border='0' width="16" height="16"> Del.icio.us</a></td>
 

  <td width='90' align='left'><a href="http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk=http%3A%2F%2Fwww.tvrage.com%2F&title=TVRage.com%3A+Your+information+guide+for++TV+Shows+and+Actor%2FActrices%2C+you+can+also+Watch+Full+Episodes"><img src='/_layout_v3/bookmarks/AddTo_Google.gif' border='0' width="16" height="16"> Google</a></td>

</tr>

</table>
 
 
 

</td><td valign='top' style='padding-top: 9px' width='168'><script language="JavaScript" type="text/javascript">

if (typeof(gnm_ord)=='undefined')

gnm_ord=Math.random()*10000000000000000; if (typeof(gnm_tile) == 'undefined') gnm_tile=1;

document.write('<scr'+'ipt language="JavaScript" src="http://n4403ad.doubleclick.net/adj/gn.tvrage.com/ros;sect=ros;sz=160x600,120x600;tile='+(gnm_tile++)+';ord=' + gnm_ord + '?" type="text/javascript"></scr' + 'ipt>');

</script></td></tr>

</table>
 

<div id="normal_tooltip"></div>
 
 

<script type="text/javascript">

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
 

</script>

<script type="text/javascript">

try {

var pageTracker = _gat._getTracker("UA-6916207-1");

pageTracker._trackPageview();

} catch(err) {}</script>
 

</body>

</html>"

Open in new window

0
Comment
Question by:billy_howard
  • 3
  • 3
  • 2
  • +1
10 Comments
 
LVL 4

Expert Comment

by:Tagor
ID: 24125863
Use the explode function: www.php.net/explode

That will give you the option to split the data and put it in variables.
0
 
LVL 1

Author Comment

by:billy_howard
ID: 24125892
Thanks for the reply.

But is that not a somewhat inefficient way of doing it? Exploding that much info is crazy (or so i thought?)

Thanks
Billy
0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 24125919
Hi, Billy.  If I understand correctly, you need to extract the text for the summary and the cast list.  The general term for this kind of extraction is called "scraping" information from a web site.  As I'm sure you are aware, you can use file_get_contents or CURL to receive the HTML from the site, then you have to look through the HTML to isolate the information you want.

Explode is one of the useful functions and so are the functions called strpos and substr (look 'em up on PHP.net).  In speaking of explode(), as Tagor suggests, you are not really dealing with "that much info" when you are talking about the HTML for a web page.  A full motion HD video is a lot of info, but the contents of a web page is really very small in terms of your capabilities with PHP.

I will try to post some examples of how to isolate this information from the HTML.  I will probably not use REGEX, just because I am not very good at it.  I will see as the code unfolds.  But before I do that, let me give you a word of caution about this process.  In the instant case, you can find the information because it is presented in "plain" HTML.  But consider what happens if you're looking at an AJAX-based page, such as the Google maps, and an increasing number of other WWW sites.  In those cases, the data is not in the HTML, instead it is dynamically presented to the browser by direct modification of the DOM.  So my caution is that you need to be aware that the "scraping" technology will not work for every site, and that if a site changes its technology from HTML to AJAX, you will lose the easy access to their data.

I'll post back here with some code examples in a little while.

Best, ~Ray
0
 
LVL 4

Expert Comment

by:Tagor
ID: 24125928
I guess you want to filter out the plain text from the html-code? There is no way to do this with a regex. Why would that be crazy?

If you have this for example:

<div argument="" argument="">info 1</div><div argument="" argument="">info 2</div><div argument="" argument="">info 3</div>

You can explode on ">" and "</div>" for example. And then put the info you want in vars.
0
 
LVL 1

Author Comment

by:billy_howard
ID: 24125942
Hi Ray..

Many thanks! It's just for this site.. so hopefully they will not change for a while! :)

And to Tagor -> My aplogies - i'm new to PHP so still getting to grips with it,

My point was there are alot of ">" and "</div>" tags in the HTML and that scared me since I dont really know how the explode function as it were.

I work REALLY well and learn much from real-life examples. I dont just copy and paste examples I read them and work out what they do :).

I look fowards to Ray's code

Many Thanks
Billy
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 108

Accepted Solution

by:
Ray Paseur earned 250 total points
ID: 24126075
Try this...
<?php // RAY_temp_bh_5.php

error_reporting(E_ALL);

echo "<pre>\n";
 

// GET THE HTML

$wwwpage = "http://www.tvrage.com/house";

$html    = file_get_contents($wwwpage);
 

// LOOK AT THE HTML TO SEE WHAT THE DELIMITERS LOOK LIKE

// echo htmlentities($html);
 

// FIND THE BEGINNING OF THE SUMMARY

$needle = "id='sht_1'>";

$locate = strpos($html, $needle);

if ($locate === FALSE) die("CANNOT FIND $needle in $wwwpage");
 

// THROW AWAY THE FRONT OF THE HTML

$html = substr($html, $locate+strlen($needle));
 

// FIND THE END OF THIS DIV

$x       = explode('</div>', $html);

$summary = strip_tags($x[0]);

$summary = get_clean_text_string($summary);
 

// FIND THE LOCATION OF THE CAST LIST

$needle = "<a name='cast'>";

$locate = strpos($html, $needle);

if ($locate === FALSE) die("CANNOT FIND $needle in $wwwpage");
 

// THROW AWAY THE FRONT OF THE HTML

$html = substr($html, $locate+strlen($needle));
 

// FIND THE END OF THIS SEGMENT

$x       = explode("class='nomarg'", $html);

$cast    = $x[0];
 

// TIDY UP THE CAST LIST

$cast    = strip_tags($cast, '<i>');

$cast    = str_replace('&nbsp;', '', $cast);

$cast    = str_replace('&bull;', '', $cast);

$cast    = str_replace('Character Guide', '', $cast);

// INSERT A PIPE DELIMITER BETWEEN ACTOR AND CHARACTER

$cast    = str_replace('</i>played<i>', '|', $cast);
 

// REMOVE THE CLOSING ITALIC TAGS, SO WE CAN GET CHARACTERS AND ACTORS LINED UP

$cast    = str_replace('</i>', '', $cast);
 

// BREAK STRING INTO AN ARRAY

$x = explode('<i>', $cast);

$cast_title = trim($x[0]);

unset($x[0]); // UNSET THIS SO WE CAN USE FOREACH ITERATOR
 

// CREATE AN ASSOCIATIVE ARRAY OF ACTOR AND CHARACTER

$cast_array = array();

foreach ($x as $actor_character)

{

   $y = explode('|', $actor_character);

   $cast_array[$y[0]] = trim($y[1]);

}
 

// SHOW THE INFORMATION WE COLLECTED

var_dump($cast_title);

var_dump($cast_array);

var_dump($summary);
 
 
 
 
 
 
 

// LOCAL FUNCTIONS

function get_clean_text_string($string)

{

   $new	= trim(ereg_replace('[^\' a-zA-Z0-9&!#$%()"+:?/@,_\.\-]', '', $string));

   $new	= ereg_replace(' +', ' ', $new);

   return ( $new );

}

Open in new window

0
 
LVL 3

Assisted Solution

by:iserko
iserko earned 250 total points
ID: 24126156
Here's an alternative :)
Choose whichever is less complicated for you.
<?php

$doc = new domDocument;

$url = "http://www.tvrage.com/house";

// get the HTML into a string

$page = file_get_contents($url);

// use the DOM parser and don't print any warnings during the parsing

@$doc->loadHTML($page);
 

// Full summary is contained within the element with id 'sft_1'

$summaryEL = $doc->getElementById('sft_1');

if ($summaryEL == NULL) {

    die("Couldn't find the summary");

}

// Strip all HTML tags and remove whitespace from either end of the text

$summary = trim(strip_tags($summaryEL->nodeValue));
 

// The cast part is within the element with the id 'iconn3'

$castEL = $doc->getElementById('iconn3');

if ($castEL == NULL) {

    die("Couldn't find the cast list");

}

// Get all the table rows in this table. All except the last 2.

$rows = $castEL->getElementsByTagName("tr");

$actors = array();

$nRows = $rows->length;

$i = 0;

foreach ($rows as $row) {

    if ($i > $nRows-2)

        break;

    // We need only 2 out of 3 cells in each row

    $cells = $row->getElementsByTagName("td");

    $actor = "";

    $character = "";

    if ($cells->length != 3)

        continue;

    // First cell is actor

    $actor_cell = $cells->item(0)->getElementsByTagName("i");

    $actor = trim(strip_tags($actor_cell->item(0)->nodeValue));

    // Third cell is character

    $character_cell = $cells->item(2)->getElementsByTagName("i");

    $character = trim(strip_tags($character_cell->item(0)->nodeValue));

    // We fill the array if either actor or character are non-empty

    if ($actor != "" || $character != "") {

        $actors[$actor] = $character;

    }

    $i++;

}
 

// We print everything out

if ($summary != "") {

    print "Summary:\n$summary\n";

} else {

    print "No summary found\n";

}

if (count($actors) > 0) {

    print "Characters:\n";

    foreach ($actors as $actor => $character) {

        print "$actor played $character\n";

    }

} else {

    print "No actors/characters found\n";

}

?>

Open in new window

0
 
LVL 108

Expert Comment

by:Ray Paseur
ID: 24126162
@iserko: Slick!  The DOM works well when the ID fields are done right in the HTML.  Nice code,  ~Ray
0
 
LVL 3

Expert Comment

by:iserko
ID: 24126285
Thanks Ray, having proper HTML helps.

Igor
0
 
LVL 1

Author Closing Comment

by:billy_howard
ID: 31569326
Brilliant, thanks!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now