【发布时间】:2015-08-10 01:46:56
【问题描述】:
这是我之前发布的问题的后续问题。
我有一个要运行 python 脚本的 html 按钮:
<form name = "input" action = "script.php" method = "get">
<input type= "submit" name = "submit" value="Submit" />
</form>
它访问的php看起来像:
<?php exec("python /c/wamp/www/thursday.py");?>
我的问题是代码没有执行,并且我的错误日志中没有收到任何内容。我做错了什么?
我的 python 代码将图像组织在一个文件夹中,并根据文件的组织方式要求用户输入文件是否命名不正确。
如果从 Web 服务器运行,python 代码是否仍会要求输入?
我看过的来源:Create HTML button to run Python Script 和 run python script with html button
【问题讨论】: