0

I have a hosting server which hosts my PHP Website and I have another server (Windows Server) which has Python App. I need to launch a Python App from my PHP Website when a user clicks the button on my website. I also need to get return data and display it on the website. How can I achieve that?

0

1 Answer 1

0

Take from Running a Python script from PHP

<?php 

$command = escapeshellcmd('/usr/custom/test.py');
$output = shell_exec($command);
echo $output;

?>
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.