I'm tryign to crap a web site but I think an ascii character code is messing it up.
Everythign works fine untill I try to get the title of a video.. I load the page into $html, in the beginnign section of my script, I need to get the video code so I have already set the $item.
The complete line in the html is "<h1><a href="/watch/265126/come-o
> come on in, i'm home, pt 1/3</a></h1>" I want to extract the title of the video between ""<h1><a href="/watch/265126/come-o
>" and "</a></h1>"
The problem is, I could extract the title as is, but the html is always changing, my variable $item will always be updated with the nex code's need. I think the ' is giving me a problem on that one video which breaks my script.
$item = "<h1><a href="/watch/265126/come-on-in-im-home-pt-13/">";
preg_match_all("/".$item."(.+?)\<\/a><\/h1>/is", $html, $match );
Debug Warning: D:\www\youtube1.php line 125 - preg_match_all() [<a href='function.preg-match-all'>function.preg-match-all</a>]: Unknown modifier 'w'