For the past several weeks my '/AtomAlerts/AtomFeed.php' has not been updating correctly. At times it was giving an error message regarding cURL not updating, so I disabled the 'curl_fetch_file($AlertURL.$noaa_code, 1, 0, $noaa_code);' option at Line 112 in favor of the 'GrabURLWithoutHanging($AlertURL.$noaa_code, 1, 0, $noaa_code);' option at LIne 108. The consistent error is 15-20 array failures like this:
Warning: array_search() expects parameter 2 to be array, null given in /home/content/(--)/html/AtomAlerts/AtomFeed-test.php on line 309
.
The GrabURLWithoutHanging() function works just fine. I'm unable to sort out what in the cURL function is causing the problem. Anyone have any ideas?
Here is my slightly modified AtomFeed.php, and
here is the original AtomFeed.php renamed to AtomFeed-test.php.