Many times we need to run the linux commands using PHP language. We are going to give you code to, execute linux commands using php. This is my favorite question about PHP when I take an interview of new PHP developer.
In this article I will show you how to execute the linux command using PHP language syntax or script.
You can execute linux commands within a php script – all you have to do is put the command line in backticks (”) ,exec() , and shell_exec().
$command = exec('linux command'); echo $command; echo shell_exec('ll');
Thanks I needed that one.
Seems like a good idea to me.
Thank you.. it’s the reason I came to the site
You`re a good writer,lucy
this was adorable :),lucy