Remote file inclusion (RFI) is a web vulnerability that lets a malicious hacker force the application to include arbitrary code files imported from another location, for example, a server controlled by the attacker. It is similar to local file inclusion.
Read about local file inclusion (LFI).