Create pipeline.php
This commit is contained in:
parent
dce6a51af9
commit
675e48565c
12
pipeline.php
Normal file
12
pipeline.php
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
<?php
|
||||||
|
// get the q parameter from GET
|
||||||
|
|
||||||
|
// Get the first parameter which is an integer
|
||||||
|
$value = $_REQUEST["value"];
|
||||||
|
|
||||||
|
// Get the second parameter which is a string
|
||||||
|
$string = $_REQUEST["string"];
|
||||||
|
|
||||||
|
//Run the command line for the python script with the value as parameter
|
||||||
|
$output = shell_exec('/usr/bin/python3 /var/www/html/I2C/pipeline.py '.$value.' '.$string);
|
||||||
|
?>
|
Loading…
Reference in a new issue