求助,php调用python脚本传递参数的问题
这样写调用不成功:$feed="rtmp://v2.gdtv.cn:1935/live/sport";$caster_id="baw";$gameName="Germen...
这样写调用不成功:
$feed="rtmp://v2.gdtv.cn:1935/live/sport";
$caster_id="baw";
$gameName="GermenVSJapan";
$command="python textcasting_stream_py/start_capture_stream.py ".$feed." ".$caster_id." ".$gameName;
system($command);
而写成这样是成功的:
system("python textcasting_stream_py/start_capture_stream.py rtmp://v2.gdtv.cn:1935/live/sport Kobe GermenVSJapan");
感觉是一样的啊,只是字符串连接了一下,哪位大神能解答一下,小弟不甚感激! 展开
$feed="rtmp://v2.gdtv.cn:1935/live/sport";
$caster_id="baw";
$gameName="GermenVSJapan";
$command="python textcasting_stream_py/start_capture_stream.py ".$feed." ".$caster_id." ".$gameName;
system($command);
而写成这样是成功的:
system("python textcasting_stream_py/start_capture_stream.py rtmp://v2.gdtv.cn:1935/live/sport Kobe GermenVSJapan");
感觉是一样的啊,只是字符串连接了一下,哪位大神能解答一下,小弟不甚感激! 展开
2个回答
2013-08-27
展开全部
不成功的
python textcasting_stream_py/start_capture_stream.py rtmp://v2.gdtv.cn:1935/live/sport baw GermenVSJapan
成功的
python textcasting_stream_py/start_capture_stream.py rtmp://v2.gdtv.cn:1935/live/sport Kobe GermenVSJapan
python textcasting_stream_py/start_capture_stream.py rtmp://v2.gdtv.cn:1935/live/sport baw GermenVSJapan
成功的
python textcasting_stream_py/start_capture_stream.py rtmp://v2.gdtv.cn:1935/live/sport Kobe GermenVSJapan
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询