There’s a trick where you can bypass Location headers. There are a lot of bad coding practices, and I’ll show you how easy it is to bypass them and to protect yourself against it.
Another reason why I love PHP is its ability to do so many things inline, while keeping the code flow amazingly simple. This is an inline anonymous switch statement, and it allows us to use a switch statement to return us something.
This function allows you to run a function over a list of referenced variables. It works a little like array_walk(), but allows an unlimited amount of variables to be referenced.
Adding CSRF protection to a PHP script is really easy once you understand how and what it should be doing. This post gives you a very easy example on how you can protect your forms against CRSF, with a very simple class.
This is a simple tutorial to help you install v8js for PHP on Windows. It explains installations for both PHP 7 and PHP 5.
In this tutorial I will explain how to install and setup v8js for PHP 5 using Linux. It’s pretty easy when using the PECL package.
This was the first PHP oneliner I came up with that spins text around using the well known text spin syntax (Spintax).
Here’s a small piece of code I wrote which plays around with inline anonymous functions.
It shows you a unique value of an array, even when refreshing the page. The output will be different every time and no value will ever be shown twice in a row.