Commit f1dd7eb1 authored by diesys's avatar diesys 🎈
Browse files

api php classifica

parent 1fd4ab62
......@@ -7,11 +7,18 @@
############## MUST USE (for the moment) --impweb param to avoid permission errors
$output = shell_exec('./tornelo.py --update prova michele giovanni 1 --web 2>&1');
echo '====== TORNEO', PHP_EOL;
$output = shell_exec('./tornelo.py -i prova --web 2>&1');
# inserisce una <br/> dopo il newline (nl2br) e sostituisce i tre spazi (formattati in python json)
echo nl2br(str_replace(" ", '&nbsp;&nbsp;&nbsp;&nbsp;', $output));
// echo '====== CLASSIFICA', PHP_EOL;
// $output2 = shell_exec('./tornelo.py -r prova --web 2>&1');
// echo $output2
# get a json and dump
// $json = file_get_contents('data/ping/ping.json');
// $json_output = json_decode($json, true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment