$easyajax = new easyajax();
$easyajax->eajax_status = 'success'; //this can either be success or error (single + mandatory)
$easyajax->eajax_message = 'message'; //your message to user (single + mandatory)
Sends data from website to server and back via Ajax. This can be modified to save data and send status with message back to user "Data successfully entered" etc... Or send your own values/arrays with json_array & json_value.
Platform for this can be found -> https://github.com/OGkaaos/Chaos-IoT
I will be soon updating this and adding the backend of the code, pretty much what it does is you have a raspberry pi with a HC-SR501 (pin18) motion detector and PiCamera and with this code and the server side code which is in php the raspberry pi can communicate with the server side script and it notifies the user that motion has been detected and takes a photo and then uploads it to the server with and on the website the user will also be notified in real-time. I also made a remote terminal for
It searches the sitemap.xml file for existing keyword and if the keyword does not exist it will add it to sitemap.xml file.