I have two files in the same directory:
index.php
excel.py
I tried to call excel.py
in file index.php
like:
$buff = system('python excel.py ' . $handle->file_dst_pathname, $retval);
I use Windows 10
I have two files in the same directory:
index.php
excel.py
I tried to call excel.py
in file index.php
like:
$buff = system('python excel.py ' . $handle->file_dst_pathname, $retval);
I use Windows 10
收起
当前问题酬金
¥ 0 (可追加 ¥500)
支付方式
扫码支付
Try it like this,
exec("C:\Python27\python.exe C:\dir...\file.py");
The problem is you must call C:\Python27\python.exe
Python exe file
before python file.
报告相同问题?