Get Remote IP@
When your server is behind any proxies or load balancers, the remote IP@ gets masked. In such scenarios, the server variable "REMOTE_ADDR" may not provide the correct client IP@. The only way to get remote addresses is…
Technology
When your server is behind any proxies or load balancers, the remote IP@ gets masked. In such scenarios, the server variable "REMOTE_ADDR" may not provide the correct client IP@. The only way to get remote addresses is…
The reason behind this question lies in HTTP protocol. Strange but it's true. HTTP is a stateless protocol. Each request is serviced as it comes; after the request is processed, all of the data is discarded. No…
Many times we fall in a situation where we have implemented detection of file type based on file extension. It's pretty easy to do that on both client as well as server side. But does it guarantees that file uploaded…
Below image depicts the focus areas if you are considering Performance Tuning as area of interest. As a developer, you can only control Platform (by configuring the hosting environment as per application requirement) & Application (by optimizing…
Singleton Pattern: it involves only one class which is responsible to instantiate itself, to make sure it creates not more than one instance; in the same time it provides a global point of access to that instance.…
Maintain three branches of code: N, (N+1) and (N+2): Branch N corresponds to Prod version Branch (N+1) corresponds to QA version Branch (N+2) corresponds to DEV version Access right to each branch needs to be separately given…