As Markus AO already mentioned in his comment, there is no machine()
function in PHP. You should use exec(), system(), shell_exec() or similar PHP functions to execute a shell command.
The code could then look like this, assuming that /home/pi/raspberry-remote/send
is executable:
<?php
exec("/home/pi/raspberry-remote/send 11000 4 1");
?>
Note that some restrictions may apply to these functions, if PHP runs in safe mode. According to the official PHP documentation, for exec()
, system()
and passthru()
these restrictions are:
You can only execute executables within the safe_mode_exec_dir. For practical reasons it's currently not allowed to have .. components in the path to the executable. escapeshellcmd() is executed on the argument of this function.