Yesterday, I kind-of neglected to show you an example of how perform basic file access. Today I will remedy that! File access can be done various ways and each has its own reasons. Here is an example of a CSV read:
I only have one week before my certification exam! I’m shivering in my boots (if I had boots)! Well, the important part is not to worry and keep studying. Here is today’s topic (and the last chapter of the book):
The streams layer is a series of classes/methods in PHP that manage the reading and writing to various data sources (file, network, compression, etc.). Here are the basic commands you need to know regarding any stream:
Okay, today should be the last day of Security topics (finally). The first one we’re going to cover is:
SQL Injection – everyone talks about it, but most people fail to protect against it. This, just like most other security concerns with PHP are INCREDIBLY easy to protect against! To explain how to protect against SQL Injection, it’s best if I show you how to perform an attack first. Let us suppose your login page POSTs to a file called login.php where this code resides:
Yesterday I explained the basic #1 rule of security when building a website – "Never Trust the User." Today I’m going to show you why and how a malicious user can attack your website.