@orpha
To get the output of a Python script and print it using PHP, you can use the exec() function to execute the Python script and capture its output.
Here is an example:
1
|
print("Hello, World!")
|
1 2 3 4 |
$output = exec("python script.py");
// Print the output
echo $output;
|
Make sure that the PHP server has permission to execute the Python script and that Python is installed on your server.