Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/253.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 当前脚本_Php_Xml Rpc_Bittorrent_Libtorrent - Fatal编程技术网

Php 当前脚本

Php 当前脚本,php,xml-rpc,bittorrent,libtorrent,Php,Xml Rpc,Bittorrent,Libtorrent,关于rTorrent的文档非常简短,因此我正在寻找一些关于使用自己的脚本系统编写rTorrent脚本的参考资料 并发问题: 我需要通过RTORENT传递一个字符串 我想将一些字符串传递给rTorrent(title)和dot torrent链接,下载完成后,使用torrent的目录名(d.get_name)和我传递的字符串运行一个php脚本 这可以解决问题,但字符串(标题)在每次下载时都是唯一的: system.method.set_key=event.download.finished,处理程

关于rTorrent的文档非常简短,因此我正在寻找一些关于使用自己的脚本系统编写rTorrent脚本的参考资料

并发问题: 我需要通过RTORENT传递一个字符串

我想将一些字符串传递给rTorrent(title)和dot torrent链接,下载完成后,使用torrent的目录名(d.get_name)和我传递的字符串运行一个php脚本

这可以解决问题,但字符串(标题)在每次下载时都是唯一的:
system.method.set_key=event.download.finished,处理程序,“execute=php/php/location$d.get_name‘title string’”


附言:有人会给这个问题添加RTORENT标签吗?

文档确实非常有限。不过,您需要的一些东西是一个
,在execute语句中,当它被传递到shell并获取您需要执行的torrent路径时,它将被替换为一个空格。因此,您的execute语句将是
execute=php,/php/location/,$d.get_base_path
,并且不确定如何执行最后一部分,即为shell指定“标题字符串”。我建议您在脚本中尽一切可能。

如果我不清楚或者可以问得更好,请告诉我。