約108件1ページ目

日本語のみで絞り込む

shell_exec — Execute command via shell and return the complete output as a string. Description. function shell_exec(string $command ): string|false|null. This ...

2012/6/15 -I am trying to execute the above command, after I call a certain php file. ... $output = shell_exec("./script.sh var1 var2"); echo "<pre>$output</ ...

2024/2/26 -PHP commands for executing shell scripts. Common PHP mistakes beginners make. Best practices for PHP error handling. How to optimize PHP code ...

2011/6/19 -Executing a shell command from PHP with shell_exec · What happens when you run your code? Are there any visible effects (output, log messages, …)? ...

2025/7/11 -The shell_exec() function in PHP executes a command via the shell and returns the complete output as a string. It allows running shell commands ...

2024/11/27 -The function shell_exec() in PHP allows us to execute shell commands directly from a PHP script and captures the output of the command as a ...

2016/10/20 -Usually the command php is used for interpretation of PHP scripts in the shell. $ php /path/script-name.php. I made simple test.sh and it ...

2021/4/2 -shell_exec() executes a command and returns the complete output as a string. It does not provide the exit code. The function return value is ...

You can probably do it with a "system" or "exec" call from php (not sure exactly what it's called in php, but it's common in most programming languages.

This will execute $cmd in the background (no cmd window) without PHP waiting for it to finish, on both Windows and Unix. <?php function execInBackground($cmd) { ...