幸福飞过海 - [分享] 用 PHP 写了一个 Transmission 的 RSS 下载 的评论项目地址: Transmission RSS目前支持的有 CHD/CMCT/TTG/OPENCD, 其它 PT 我没有账号无法确定适配, 因为 XML 格式可能不一样.使用方法:git clon...2018-05-16T07:44:44+00:00Typechohttps://fengqi.me/feed/atom/php/246.htmlhttps://fengqi.me/php/246.html/comment-page-1#comment-394102018-05-16T07:44:44+00:002018-05-16T07:44:44+00:00风起http://fengqi.me在你的服务端终端啊
]]>https://fengqi.me/php/246.html/comment-page-1#comment-394082018-05-14T06:54:19+00:002018-05-14T06:54:19+00:00bobbyman请问大神,我是一个菜鸟,
在上面地方输入这个命令?
git clone https://github.com/fengqi/transmission-rss.git transmission-rss
cd transmission-rss
]]>https://fengqi.me/php/246.html/comment-page-1#comment-393962017-04-09T05:52:44+00:002017-04-09T05:52:44+00:00风起http://fengqi.me应该是抓取到的 xml 格式有问题, 你可以在 这一行输出下看看内容 https://github.com/fengqi/transmission-rss/blob/master/rss.php#L141
]]>https://fengqi.me/php/246.html/comment-page-1#comment-393952017-04-04T08:01:23+00:002017-04-04T08:01:23+00:00greyhanttee问题解决了。但是又出现了新问题:
PHP Notice: Undefined offset: 1 in /home/greyhanttee/transmission-rss/rss.php on line 76
PHP Warning: DOMDocument::loadXML(): Opening and ending tag mismatch: hr line 5 and body in Entity, line: 6 in /home/greyhanttee/transmission-rss/rss.php on line 141
PHP Warning: DOMDocument::loadXML(): Opening and ending tag mismatch: body line 3 and html in Entity, line: 7 in /home/greyhanttee/transmission-rss/rss.php on line 141
PHP Warning: DOMDocument::loadXML(): Premature end of data in tag html line 1 in Entity, line: 8 in /home/greyhanttee/transmission-rss/rss.php on line 141
这样是不是不影响使用呢?
]]>https://fengqi.me/php/246.html/comment-page-1#comment-393942017-04-04T06:13:55+00:002017-04-04T06:13:55+00:00greyhanttee大神您好!在使用代码时出现:
PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in /home/greyhanttee/transmission-rss/rss.php:66
Stack trace:
#0 /home/greyhanttee/transmission-rss/rss.php(31): Transmission->getSessionId()
#1 /home/greyhanttee/transmission-rss/rss.php(171): Transmission->__construct('127.0.0.1,192.1...', 9091, '/transmission/', 'greyhanttee', '0000')
#2 {main}
thrown in /home/greyhanttee/transmission-rss/rss.php on line 66