Just discovered the amazing
Raspberry Pi 3
exec("python sendSms.py -p phoneNumber -m fetchedText", $output)
What are the (logical) pitfalls of this scenario? My opion would be to pass the data and the two fields (phoneNumber and SmsType) through a POST request rather then an GET request because you can send more data in an post request and encapsulate it with JSON making it easier to handle the data.
What would be a simpler approch ? Maybe not simple but more elegant, extend the python script with something like flask and build the webserver right into the python script, saves you running a webserver with php!