How can I run a php script from my Spark Core?

As @kennethlimcp said Webhooks is the easy way! Or a simple TCP client will do the job.. you could use POST or GET, either would work depending on your PHP script.

Here is a link to my doorbell which posts to a PHP script on my server, you may find some goodies in there

2 Likes