note 108975 deleted from function.file-get-contents by salathe
| From: | salathe@php.net | Date: | Mon, 21 Sep 2020 14:38:03 +0000 |
| Subject: | note 108975 deleted from function.file-get-contents by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215232@lists.php.net to get a copy of this message | ||
Note Submitter: werdnanoslen at gmail dot com
----
This is an easy way to trigger scripts by listening for POSTs. I simply point a service's
webhook url to the script, which file_get_contents("php://input"), cast to an array, and
then simplexml_load_string() to parse it and use one of the keys' data as the parameter for my
script.