Find and Replace XML with PHP -
i have inaccurate podcast generator i'm trying correct using php code:
<?php $superxmlfile_load_file("http://www.podcastgarden.com/podcast/podcast-rss.php?id=2337"); $xml= str_replace(type="audio/mp4", type="video/mp4", $superxmlfile); echo $newtext ?>
anyone know what's wrong , how fix it? thanks!
looks lot of syntax errors.
try this.
<?php $superxmlfile = file_get_contents("http://www.podcastgarden.com/podcast/podcast-rss.php?id=2337"); $xml= str_replace('type="audio/mp4"', 'type="video/mp4"', $superxmlfile); echo $xml; ?>
you should at-least basic editor php code syntax highlight.
Comments
Post a Comment