diff --git a/phnslib.php b/phnslib.php index 94158fa..f42ef7d 100644 --- a/phnslib.php +++ b/phnslib.php @@ -12,7 +12,7 @@ function p2h($data, $keytype) { ]; fwrite($f, json_encode($temp, JSON_UNESCAPED_LINE_TERMINATORS)); fclose($f) - return `python converter.py`; + return shell_exec("python converter.py"); } function h2p($data, $keytype) { $f = fopen("temp.json", "c"); @@ -27,7 +27,7 @@ function h2p($data, $keytype) { ]; fwrite($f, json_encode($temp, JSON_UNESCAPED_LINE_TERMINATORS)); fclose($f) - return `python converter.py`; + return shell_exec("python converter.py"); } function seed2hkey($data) { $f = fopen("temp.json", "c"); @@ -42,6 +42,6 @@ function seed2hkey($data) { ]; fwrite($f, json_encode($temp, JSON_UNESCAPED_LINE_TERMINATORS)); fclose($f) - return `python converter.py`; + return shell_exec("python converter.py"); } ?> \ No newline at end of file