Put the command twice in the argument:
<?php shell_exec('some_command; some_command'); ?>
Or call shell_exec
twice:
<?php shell_exec('some_command'); shell_exec('some_command'); ?>
Frage
I have this:
<?php shell_exec('some_command') ?>;
How can I run 'some_command' more than once?
I'm a code neat freak, calling them more than once kind of an eyesore to me.
Lösung
Put the command twice in the argument:
<?php shell_exec('some_command; some_command'); ?>
Or call shell_exec
twice:
<?php shell_exec('some_command'); shell_exec('some_command'); ?>