This tutorial is for Ubuntu & Squid3. Use AWS, Google cloud, Digital Ocean or any services with Ubuntu to follow this tutorial.
sudo apt-get update
sudo apt-get install squid3
sudo apt-get install apache2-utils
| <html> | |
| <head> | |
| <title>reCAPTCHA demo: Simple page</title> | |
| <script src="https://www.google.com/recaptcha/api.js" async defer></script> | |
| <script> | |
| function onSubmit(token) { | |
| document.getElementById("demo-form").submit(); | |
| } | |
| </script> | |
| </head> |
| <?php | |
| /** | |
| * Usage: | |
| * $message = 'My First Push Notification!'; | |
| * $pushServer = new PushSerer(); | |
| * $pushServer->pushToGoogle('REG-ID-HERE', $message); | |
| * $pushServer->pushToApple('DEVICE-TOKEN-HERE', $message); | |
| */ | |
| class PushServer |