-1

I want to run a Python script from PHP via system with some arguments. My PHP doesn't throw any errors and $retval is 1. But I don't see any generated output file $f1 in the current directory. Is there a chance the output file goes somewhere else?

$outp1 = system("python plain.py {$url1} {$f1}", $retval);
4

1 回答 1

0

现在找到了答案,我需要将权限设置为 777 以便 apache 可以写入该文件夹。

于 2012-10-18T12:40:25.790 回答