There might be situation where you need to change php configuration values when you work on server. In local apache server, you can easily change the php configuration values using php.ini file from directory. But what will you do as php.ini is not visible on server ? The solution is .htaccess which is visible on server(.htaccess invisible ?). Using .htaccess you can change the php configuration values.