Hello,
My host upgraded php from 4.3.3 to 4.3.4 🙁
before the upgrade my scripts were working perfectly.
after the upgrade it randomly works. Meaning if you call the script 1 out of 4-5 time the script works. This leads me to beleive it is an issue with the upgrade?? Here is the script:
$open = fopen("http://travel.state.gov/warnings_list.html", "r");
$read = fread($open, 15000);
fclose($open);
$search = eregi("the subject country. </font></font>(.*)<CENTER>", $read, $printing);
$printing[1] = str_replace("href=\"", "href=\"http://www.passageinternational.com/redirect.php?url=http://travel.state.gov/", $printing[1]);
Further more I think that it might be the eregi() that is randomly working and not the fopen()?
Any one else having this issue or maybee a different way of doing the above code?
Many thanks
Chris