Top "Shell-exec" questions

The shell_exec() PHP function provides the ability to run shell commands during the execution of a script.

How To Execute SSH Commands Via PHP

I am looking to SSH out via PHP. What is the best/most secure way to go about this? I …

php ssh shell-exec
Pinging an IP address using PHP and echoing the result

I have the following function that I doesn't work so far. I would like to ping an IP address and …

php ping shell-exec
Passing multiple PHP variables to shell_exec()?

I am calling test.sh from PHP using shell_exec method. $my_url="http://www.somesite.com/"; $my_refer="http://…

php shell shell-exec
executing a Powershell script from php

I'm trying to execute a powershell script from PHP, but it does not seem to work. The script 'newEvent.ps1…

php powershell exchange-server shell-exec
What are the differences of system(), exec() and shell_exec() in PHP?

It is possible to run an external command by three PHP functions of system(); exec(); shell_exec(); but what are …

php shell system exec shell-exec
Using PHP to execute cmd commands

How do I properly execute commands in the command line using php? For example I'm using the command below in …

php cmd shell-exec
PHP sudo in shell_exec

I want to execute a command as root with shell_exec. Now I know this is dangerous, but believe me, …

php shell root sudo shell-exec
Using wkhtmltopdf on Windows

I am trying to set up the nifty HTML to image plugin called wkhtmltopdf and I am having a really …

php shell wkhtmltopdf shell-exec wkhtmltoimage
List of 'if' switches anywhere?

Is there a list of all the if switches for use in bash scripting? Sometimes I see someone using it …

bash if-statement switch-statement shell-exec
How to execute a shell command from a php script

I would like to create a php script to execute a shell command and return its output. The server requires …

php shell-exec