小编use*_*449的帖子

SimplePie可以从Feed中抓取图像

我正在使用这个simplepie,我已将文件上传到我的主机.除了一件事,一切似乎都很好.我从中获取Feed的博客中包含图片,当我使用simplepie查看Feed时,图片不显示.当我用simplepie查看博客时,有没有办法让图像显示出来?

好的,对不起,我是新来的.我只是直接从网站上使用代码来尝试查看博客.我会把代码放在底部.所以,就像我说的那样,我只是想让图像显示在我正在阅读的博客上.除此之外,一切都表现得很好.

---标题信息---

<?php

// Make sure SimplePie is included. You may need to change this to match the location of simplepie.inc.
require_once('simplepie.inc');

// We'll process this feed with all of the default options.
$feed = new SimplePie();

// Set the feed to process.
$feed->set_feed_url('http://wordpress.homickdesign.com/feed/');

// Run SimplePie.
$feed->init();

// This makes sure that the content is sent to the browser as text/html and the UTF-8 character set (since we didn't change it).
$feed->handle_content_type();

// Let's begin our XHTML webpage …
Run Code Online (Sandbox Code Playgroud)

php rss simplepie

1
推荐指数
1
解决办法
8803
查看次数

标签 统计

php ×1

rss ×1

simplepie ×1