This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Todo: Send a random user agent string and sleep a random amount between requests. | |
| */ | |
| if ($_SERVER['REQUEST_METHOD'] == 'POST') { | |
| // Extract and sanatize input: | |
| $domain = filter_input(INPUT_POST, 'domain', FILTER_SANITIZE_URL); | |
| $terms = filter_input(INPUT_POST, 'terms', FILTER_SANITIZE_STRING); | |
| // Setup Goutte (which also includes Guzzle): |
NewerOlder