Skip to content

Instantly share code, notes, and snippets.

@Zylvian
Created November 3, 2018 16:25
Show Gist options
  • Save Zylvian/9b6a1acab87459d8e9a270865bdd016a to your computer and use it in GitHub Desktop.
Save Zylvian/9b6a1acab87459d8e9a270865bdd016a to your computer and use it in GitHub Desktop.
<?php
$outie = exec('sudo /usr/bin/python /var/www/html/rainFetch.py');
echo $outie;
$command = escapeshellcmd('/var/www/html/rainFetch.py');
$output = shell_exec($command);
echo $output;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment