You use the system function: http://php.net/manual/en/function.system.php
Something like this:
$mystring = system('python myscript.py myargs', $retval);
More Related Contents:
- What kinds of patterns could I enforce on the code to make it easier to translate to another programming language? [closed]
- Running a Python script from PHP
- Is there a php function like python’s zip?
- Calling Python in PHP
- Whether to use “SET NAMES”
- How to prevent my site page to be loaded via 3rd party site frame of iFrame
- Variable-length lookbehind-assertion alternatives for regular expressions
- How can I generate a screenshot of a webpage using a server-side script?
- executing Python script in PHP and exchanging data between the two
- Execute php code in Python
- int((0.1+0.7)*10) = 7 in several languages. How to prevent this?
- Python equivalent of PHP’s compact() and extract()
- python format datetime with “st”, “nd”, “rd”, “th” (english ordinal suffix) like PHP’s “S”
- Decrypting strings in Python that were encrypted with MCRYPT_RIJNDAEL_256 in PHP
- Running python script in Laravel
- Execute Python script from Php
- Unserialize PHP data in python [duplicate]
- Call Python From PHP And Get Return Code
- Php preg_match_all, wordpress function [closed]
- Access PHP variable in JavaScript [duplicate]
- Accessing @attribute from SimpleXML
- SSL error SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
- What are fragment URLs and why to use them?
- How to redirect back to form with input – Laravel 5
- Checking if mysqli_query returned any values?
- file locking in php
- Apache’s ErrorDocument directive does not redirect
- find and replace keywords by hyperlinks in an html fragment, via php dom
- php static function
- Do GitHub pages support PHP? [closed]