Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

send data from php to python

/*
this code php send data to python
*/
<?php 
	$data = 'Hayder'; 
    $output=shell_exec("python E:/test.py "  .$data);
    echo $output;
?>

\\\\\\\\\\\\\

/*
this code python to show data 
*/
import sys
result = sys.argv[1]
print(result)
 
PREVIOUS NEXT
Tagged: #send #data #php #python
ADD COMMENT
Topic
Name
1+8 =