小弟我聽取各位建議 先練習抓取網址 以下用youtube當範例 我要抓取音樂網址 所以定位用href下的看看能不能找到之後那串 音樂網址 但是我執行出來 是有抓到href後面的東西 但不是音樂網址 請大家幫我看看還要改哪呢 <?php # Include libraries include("LIB_parse.php"); include("LIB_http.php"); # Download a web page $web_page = http_get($target="https://www.youtube.com/watch?v=QjQg0aDbnf0", $referer=""); # Parse the title of the web page, inclusive of the title tags $href_incl = return_between($web_page['FILE'], " href=", " href=", INCL); # Parse the title of the web page, exclusive of the title tags $href_excl = return_between($web_page['FILE'], " href=", " href=", EXCL); # Display the parsed text echo "href_incl = ".$href_incl; echo "\n"; echo "href_excl = ".$href_excl; ?>