File Inclusion Vulnerability

Write briefly on File Inclusion Vulnerability. What is it? Why is is dangerous? What is the difference of local File Inclusion (LFI) Vulnerability and Remote file inclusion (RFI) vulnerability? What methods can me employed to prevent a security breach (both LFI and RFI)? What programming languages are vulnerable to this type of attack. Write in 300 words and it should include all the points mentioned above.