LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Web query to execute commands and output it to a web page ! (https://www.linuxquestions.org/questions/linux-newbie-8/web-query-to-execute-commands-and-output-it-to-a-web-page-724579/)

ashes_sheldon 05-08-2009 12:22 AM

Web query to execute commands and output it to a web page !
 
hi fellas
I wanted to know if i can execute commands on linux console through a web page and redirect it back to my web page !

For example :
if i send a query "ls"
it should execute this command on my linux console and also redirect the list of the files to the web page from which i give the command !

please help me out ..

regards,
ashes_sheldon

flopypl 05-08-2009 02:45 AM

Use PHP. Then you will be able to send system commands and/or use Filesystem functions.

http://www.php.net/manual/en/ref.filesystem.php
http://pl2.php.net/manual/en/book.exec.php


All times are GMT -5. The time now is 12:23 PM.