Webhooks: What Am I Doing Wrong? PHP

Yes, that is a pretty simple way of looking at it, but basically ya. PHP does not always run, your webserver always runs. Your webserver turns on PHP to process a request using your PHP script, and then when the script finishes, PHP turns off.