Many errors in PHP, or any other scripting language can be traced to invalid user input, which was not properly validated by the application.