Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
systemいくつかの引数を使用して、PHP から Python スクリプトを実行したいと考えています。私のPHPはエラーをスローせず、 1です。しかし、現在のディレクトリに$retval生成された出力ファイルがありません。$f1出力ファイルが別の場所に移動する可能性はありますか?
system
$retval
$f1
$outp1 = system("python plain.py {$url1} {$f1}", $retval);
答えが見つかりました。Apacheがフォルダーに書き込めるように、アクセス許可を777に設定する必要がありました。