Trying
PHP echo: quiroz_test.py
PHP echo: now Python ...
PHP echo: $ /usr/bin/python3 --version: Python 3.9.2
PHP echo: next exec('/usr/bin/python3 quiroz_test.py')
PHP echo: now Python ...
PHP echo: exec -- if with array, returns complete output
PHP echo: from Python
1/3 Today's date (really): 2025-02-19
2/3 Today's date (really): 19/02/2025
3/3 19-Feb-2025
Should be date 3 times. — Done !
PHP echo: passthru -- inadequate (raw output)
PHP echo: shell_exec -- just returns complete output
-rwxr-xr-x 1 453 Jun 7 2020 Sevilla.py
-rw-r--r-- 1 261 Jun 5 2020 quiroz_add.py
-rw-r--r-- 1 270 Jun 4 2020 quiroz_test.py
-rw-r--r-- 1 150 Jun 6 2020 time_test.py
-rwxr-xr-x 1 265 Jun 7 2020 tutPoint-hello.py
PHP echo: exec -- returns last line of output
-rwxr-xr-x 1 265 Jun 7 2020 tutPoint-hello.py
Exchanging variables PHP-Python-PHP
PHP echo: input arr / 3 / 9 / -1 / 44
x1, x2 = 3, 9
Sum, 12
3^9 = 19683
FINISHED
 |
 |
http://web.tecnico.ulisboa.pt/~mcasquilho/compute/misc/Fx-quiroz.php
Created: 2020-06-01 — Last modified:
2020-06-05 |