How to use php execute server command and return result
Posted: Sat May 31, 2008 11:21 am
Hi.. i just download a script that do a task which is lets say
If i execute this at my server
wget '127.0.0.1:64652/v12345567' , i am able to use my python script and download the file.
but now i want make a php script which do the following
it will make my server execute 127.0.0.1:64652/v12345567 and return the result that is create by my default.py and provide the link by Echo "<a href='$resultreturn'>Download File</a>"
anyone can tell me how i can do it.
basically i need my server to execute the command , i try use my server ip to do the execute + port but it dont work..
e.g http://myserverip:64652/v12345567 , it return error lander.. page not found or something . this is weird haha though myserverip should be same as my that 127.0.0.1
Thanks a lot for your help
If i execute this at my server
wget '127.0.0.1:64652/v12345567' , i am able to use my python script and download the file.
but now i want make a php script which do the following
it will make my server execute 127.0.0.1:64652/v12345567 and return the result that is create by my default.py and provide the link by Echo "<a href='$resultreturn'>Download File</a>"
anyone can tell me how i can do it.
basically i need my server to execute the command , i try use my server ip to do the execute + port but it dont work..
e.g http://myserverip:64652/v12345567 , it return error lander.. page not found or something . this is weird haha though myserverip should be same as my that 127.0.0.1
Thanks a lot for your help