PHP call python script - problem
Posted: Wed Nov 22, 2006 9:33 am
Hi,
I am calling a python command from PHP using
system($command)
The python script copies a file from one serer to another server.
If I run the python script outside of PHP - i.e from the command line, it works.
If I call it from PHP it doesn't.
All other function work in python - except when copying a file from one server to another.
Is there some problem with PHP's / Apache's interaction with system commands?
Someone has recommended doing the following with Apache but would like some advice first...
Start>Run>services.msc
Right click "Apache...", select properties.
Click on the "LOG ON" tab
Check the box "Allow this service to interact with desktop"
Click OK
Restart Apache
Any ideas?
I am calling a python command from PHP using
system($command)
The python script copies a file from one serer to another server.
If I run the python script outside of PHP - i.e from the command line, it works.
If I call it from PHP it doesn't.
All other function work in python - except when copying a file from one server to another.
Is there some problem with PHP's / Apache's interaction with system commands?
Someone has recommended doing the following with Apache but would like some advice first...
Start>Run>services.msc
Right click "Apache...", select properties.
Click on the "LOG ON" tab
Check the box "Allow this service to interact with desktop"
Click OK
Restart Apache
Any ideas?