0

Call python from php

Does anyone know how to call python script from php or directly from js in local and in web server?

24th Sep 2018, 1:06 PM
Mladen Lazic
Mladen Lazic - avatar
1 Resposta
0
You can call python script from php using this pair of command: $cmd = escapeshellcmd('yourscript'); and $result = shell_exec($command) I suggest to read carefully official php documentation about them before inserting them into your code headlong.
24th Sep 2018, 1:54 PM
strawdog
strawdog - avatar