Organisations around the world have been scrambling to fix a critical security flaw in the programming language PHP which is used by the majority of websites.