Created
December 22, 2009 13:38
-
-
Save sonkm3/261747 to your computer and use it in GitHub Desktop.
php DPZラジオ 長編をpodcastで聞く
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* DPZラジオ 長編をpodcastで聞く */ | |
$dprfeed = file_get_contents( "http://podfeedsp.podcastjuice.jp/app/rss_convert.cgi?url=http%3A%2F%2Fdpz%2Ecocolog%2Dnifty%2Ecom%2Fdpr%2F" ); | |
if($dprfeed){ | |
$dprfeed = preg_replace('|<enclosure url="http://portal\.nifty\.com/[0-9]*/[0-9]*/[0-9]*/[a-z]/[0-9]*.mp3" length="[0-9]*" type="audio/mpeg" />|', "", $dprfeed); | |
$dprfeed = preg_replace('|<title>デイリーポータルZラジオ</title>|', "<title>デイリーポータルZラジオ(長編)</title>", $dprfeed); | |
print($dprfeed); | |
}else{ | |
header('HTTP/1.0 500 Internal Server Error'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment