In this post I will explain about how to add piece of php code in all files (including new files to be added) within a particular sub-folder in Apache server hosting environment.
Let me explain why we need to add piece of php code in all files within a folder.
Consider below url.
http://site.com/showtopic.php?id=10
By seeing this url we can understand that this site is developed using php, and we can understand coding/database table upto some extent. For example, if you change id value to some invalid value instead of 10 we will get some error message/query which may give some details about database table.