There are two problems: 1. if exec is used, remove disable_functions. So how to ensure security? 2. 1. put php and test. py in the same directory 1.php:{ code...} test. py: print & #039; 1234 & #039; call localhost1.php, no response? There are two problems:
I,
If exec is used, remove disable_functions.
So how to ensure security?
2. 1. put php and test. py in the same directory
1. php:
Test. py:
Print '20140901'
No response is returned when http: // localhost/1.php is called?
Reply content:
There are two problems:
I,
If exec is used, remove disable_functions.
So how to ensure security?
2. 1. put php and test. py in the same directory
1. php:
Test. py:
Print '20140901'
No response is returned when http: // localhost/1.php is called?
In php, calling python does not respond. it may be because of environment variables. you can use the absolute path of python + the absolute path of the python file to call it for a try.
If there is no special processing, it may be a Synchronous http call, which will wait for python to run and may time out.
Try to use exec and other functions in CLI mode
Directly call php in python