douyan1244 2012-10-18 10:19
浏览 132

PHP执行Python但没有输出

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);
  • 写回答

1条回答 默认 最新

  • douhui7136 2012-10-18 12:40
    关注

    Found the answer now, I needed to set permissions to 777 so that apache can write to the folder.

    评论

报告相同问题?

悬赏问题

  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 关于#python#的问题:自动化测试