Gitting the commit message right
It’s not uncommon for a developer to discover that a certain commit message is off the mark and needs revision. Like with most things in Git, this can be achieved…
My Personal Site
It’s not uncommon for a developer to discover that a certain commit message is off the mark and needs revision. Like with most things in Git, this can be achieved…
In this article, we look at various ways of debugging PHP scripts, from printing variable values to using sophisticated debuggers.
The function `json_decode()` can be used to convert JSON data to PHP variables. Arrays as well as objects can be converted to their equivalent PHP literals.
Git – Deleting Branches Consider a local branch foo. The corresponding remote-tracking branch origin/foo (origin is the remote repo) tracks the remote branch Foo. The task of deleting branch foo…
This technique of attacking data-driven applications by injection of malicious SQL code is known as SQL Injection. Well-written applications that employ proper checks can easily defend themselves against this type of attacks. Here are some ways in which apps written in PHP can check for SQL Injection attacks.
It’s hard to ignore the importance of a good IDE when it comes to programming. A good choice can greatly enhance the productivity of any programmer. Remember the choice of an IDE is quite subjective and that there’s no such thing as the perfect choice.
Since HTTP is stateless, webpages are disconnected and this implies that Page A won’t be aware of the existence of Page B or any data thereof. However, Page A can still access the variables from Page B scripts using the methods discussed here.
Solving the problem of deleting an element from a given array, using just the value.
Find a word or pattern of words in a PHP string