- shell_exec: documentation ( source)
- chmod: documentation ( source)
- file_put_contents: documentation ( source)
<?php
file_put_contents('/tmp/hello', "#!/bin/sh\necho im a good guy.");
echo `echo /tmp/*`;
//echo `chmod +x /tmp/hello`;
chmod ('/tmp/hello', 0755);
echo `/tmp/hello`;