【发布时间】:2023-03-26 22:22:01
【问题描述】:
我有一个不准确的播客生成器,我正在尝试使用带有此代码的 php 进行更正:
<?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
?>
有人知道出了什么问题以及如何解决吗?谢谢!
【问题讨论】:
-
你错过了报价
$xml= str_replace('type="audio/mp4"', 'type="video/mp4"', $superxmlfile); -
看起来有很多语法错误。
$superxmlfile_load_file是什么意思? -
@Andrew 该脚本有空白输出和错误消息。
-
@bansi
$superxmlfile_load_file是我试图加载 XML 文件并将其保存为变量。
标签: php xml replace find itunes