So I have a bash script I want to run in php that has arguments but at the moment I cant even get PHP to write to the machine. As a basic test I tried the touch command to no success. I'm new to PHP so any help would be great. I don't understand whats wrong here. I've tried:
<?php
shell_exec('touch /var/www/html/test.txt');
?>
<?php
exec('touch /var/www/html/test.txt');
?>
<?php
system('touch /var/www/html/test.txt');
?>
<?php
passthru('touch /var/www/html/test.txt');
?>