LONDON: The British government advised the public on Friday to keep three days of emergency supplies at home, a message it said had been hammered home by this week's PHP software glitch, as well as a record-setting summer of heat, drought and wildfires.

Governments and businesses worldwide have rushed to secure systems running the PHP programming language after flaws were disclosed on Wednesday, forcing some services offline and triggering millions of hacking attempts in one of the most significant cybersecurity incidents in recent years.

The British government said the internet outage showed the importance of its newly launched "Be Ready" campaign, which advises the public to keep three days of bottled water and non-perishable food in the house.