I have a website that I created and I need to have a button link to a php file for it to execute a python script. My problem is that when you click the button the script does not execute. This is what I have so far, anything will help! The php file is called minecraft.php and the python script is called py-mine.py.
<?php
$output = shell_exec('/var/www/html/py-mine.py');
?>
and a section of my html for the button:
<a href="minecraft.php">
<button class="bkg-navy-light border-hover-navy-light color-white color-hover-navy-light no-margin-left" ></a>
<span class="icon-upload"></span>
Minecraft
</button>
<input type="submit" value="Button3" class="form-submit button medium bkg-black bkg-hover-turquoise color-white color-hover-white">