Transmitting PHP data via Ethernet

Hello guys, how are you?
First of all, sorry if I write something wrong, I'm not fluent in english.

Now, here is my purpose:

I'm doing a project with Arduino that is something like a medicine box, that have slots where you can deposite some pills. It will be a circular structure, where a servomotor will rotate when the real time hour be the same as programmed. I have a page using HTML and PHP, where I want to set the times and send it to Arduino via Ethernet.

Resuming: when the correct hour reach, it will do the action.

My problem is: I'm new in Arduino and in PHP. I searched a lot projects that has the same objective, but normally is Arduino sending strings to pages, or Arduino creating his own page in the code.

I received my W5100 Ethernet Shield 2 days ago, and I'm testing it to know better how it works. I got working the NTP/UDP code available here in the official tutorials (https://www.arduino.cc/en/Tutorial/UdpNtpClient), and turned on a Led using the clock.

Could you guys give me a path to follow, say me the best way (and easiest, if possible) to reach my goal. I would be happy if could transmit 2 strings (hour and minute) from PHP database to Arduino, and it turn on a led if the data transmited is the same as NTP hour.

Thank you for reading, bye!

I have a page using HTML and PHP, where I want to set the times and send it to Arduino via Ethernet.

This shows a fundamental lack of understanding of client and server architecture and communication.

A server responds to requests. A client makes requests. Which role is the Arduino to perform? If it serves up a page, there can not be PHP involved, because the PHP engine does not run on the Arduino.

If it is a client, you can't push data to it.

Look at the 'Webclient' example that comes with Arduino IDE. Instead of google.com, it'll be mydomain.com/myphppage.php.

Yes, this is exactly what I need. Is this an UDP connection? How can I do this using my page (that isn't online yet, only localhost)?

And sorry, as I said, I'm learning yet. So I need to prepare my page to when it receives a request from Arduino, it send back something, right?

It's easier if you don't use udp in this case. Public web servers don't usually allow you to open sockets for udp. You'd have to code something like this php server udp

You can do whatever you want with your local machine but stick with the usual server / client http response.