How can I run .php file in response to an event

0

Hello, I'm all doing a job to finish the DAG CFGS and I want to add one thing to the project that I do not know very well how to tackle it.

To summarize I have a website hosted in a hosting, a database in said hosting and a desktop program in java.

What I want to achieve is that when a new user is created with the program in java, an email is sent to the user's address.

It occurs to me that I can do it in 2 ways: - That when I insert the new user, with a trigger of the bbdd run a php file where I send this mail. - That from the desktop program, once inserted in the bbdd and have the ok, call the php file of the server and that it sends the mail.

But the truth is that I have no idea how to make any of it. Greetings.

PD1: I've been looking for how to launch a php file from a trigger And I found this, where it says it's not possible.

link

    
asked by P_MaN 01.06.2018 в 14:06
source

0 answers