Code
HOW to get visitor IP behind Cloudfare or Proxy
Normally we would use $_SERVER[‘REMOTE_ADDR’] but unfortunately, this doesn’t work with Cloudflare. This small...
Read articleFull Stack Engineer · 25+ products · 100,000+ users
Notes, how-tos and lessons from building for the web — mostly engineering, PHP and the things I learn shipping projects.
Code
Normally we would use $_SERVER[‘REMOTE_ADDR’] but unfortunately, this doesn’t work with Cloudflare. This small...
Read article
Code
Passing in arguments via the command line is an extremely basic programming task, and a necessity for anyone t...
Read article
How To
There is a case when you require to add a value or key/value pair before a specific key in an array. Here’s th...
Read article
How To
There is a case when you require to add a value or key/value pair after a specific key in an array. Here’s the...
Read article
Command
You are collaborating on a project with a group of people, and you have defined a naming convention for git br...
Read article
Code
There are times when you want others to know that you designed the specific WordPress theme or develop WordPre...
Read article
Command
There are various scenario where you want to change the remote’s URL in your git repository. You can fire git...
Read article
Code
As a plugin developer you feel frustrated when some other plugin will hijack your plugin screens with admin no...
Read article
Code
There are various scenarios in which you want to check whether the given value is present in array or not. So,...
Read articleThat’s my favourite kind of conversation. Tell me what you’re up against — let’s figure it out together.