|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
how to connect to the command line php from a front end in site
Hello friends,
I want to execute a command line php script from front end. for example i am writing the output of a command into a file using system command.this whole php file when run from site not able to connect and run. i would like to know the connection of php root,how to do it ? thanks in advance |
|
#2
|
|||||
|
|||||
|
RE: how to connect to the command line php from a front end in site
So let me get this straight you want to be able to input a command into a web form and then have it run in the shell, using System or exec? Can i just say this is a very very very bad idea as root unless you lock it down soo much its practically useless IMO.
But Couldnt you just do something like php Code:
DO NOT USE THIS ON A PRODUCTION ENVIRONMENT (The script is an EXAMPLE and is VERY insecure, just shows the concepts....) |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Applications > how to connect to the command line php from a front end in site |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|