How to make a shell call from within a MySQL function or Trigger -
i have table records positions (gps) , fires insert trigger, check if new point inside or outside of area, based on result need notify (send email or sms).
i able detect trigger need send notification able make shell call or http url call , send email. http://myserver.com/sendemail.php?to=email@address.com&subject=new+messaje&body=you+are+inside
if not posible how can / better approach.
thanks
database triggers not right place sort of application logic. correct place logic in application, you're inserting data table. (conveniently, application better situated send mail database is.)
Comments
Post a Comment