Forum Moderators: coopster
Basically the code stores weblinks, and when called it retrieves each page, compares the MD5 hashes with those stored, and displays whether the pages have changed or not.
I wanted to add a feature where I could pass a variable within the weblink to specify a particular page to check, so that I could run the script as a cron job, and it would return the answer from the data. I used:
if ((!isset($_POST['action'])) and (!isset($_GET['check']))) {
#perform check on data, print response
} elseif ($_POST['action'] == "submit") {
#save data
} elseif (isset($_GET['check'])) {
#perform check on data, print response
}
When I run the script using the variable 'check' in the link, it runs through the data check code, I see the response on the screen, but it says 'page loading' for a long time. In the mean time, the error_log file grows to hundreds of megs in size. I cut and pasted the EXACT code from the POST['action'] into GET['action'], but this problem persists.
I haven't debugged a whole lot, because each run takes a while to finish generating the huge error_log file, and because I'm afraid I'm taxing the server too much. I can post the code that is running, but like I said, it runs perfectly when POSTed. What am I missing?