Combine PHP Functions To Make Your Own

Combine PHP Functions To Make Your Own

One of the great things about PHP is the fact that it has built in functions for anything and everything. A really neat thing to do is to try to stitch these functions together to create interesting new functions. If there are functions in PHP that you really like and want to extend them so to speak, you can do this by creating your own. In this episode, we’ll take a look at doing just that.…

What Is Goutte?

What Is Goutte

At the time of this writing, Laravel 5 development is in full swing – and there are lots of changes coming down the pike. It would be fun to jump back in to covering Laravel but things seem a little too fluid at the moment. We’ll know by the end of the year where to focus our energies when working with Laravel once the feature set and best practices are agreed upon and shipped.…

What Is Guzzle PHP?

What Is Guzzle PHP

You may have heard the term Guzzle come up lately in the PHP Community and began to wonder what it is. We were curious as well so we decided to dig into it a bit more. In this post we’ll take a look at what Guzzle is, what it is used for, some of the projects that make use of it, and how you might be able to make use of it as well.…

Escape Strings For MySQL To Avoid SQL Injection

Escape Strings For MySQL To Avoid SQL Injection

With all the talk about working with databases using MySQL and PHP in this tutorial series, one thing we didn’t cover yet is SQL Injection and how to protect your site from it. The syntax for MySQL is very specific, and if you don’t get it right, it is easy to break. As we build up queries using dynamic data from our variables in PHP, you need to be careful that any data contained in those variables do not break the syntax as well.…

PHP MySQL CRUD Tutorial

4 Components Of CRUD With Native PHP and MySQL

In the last lesson we learned more about working with results from select queries in MySQL. In other words, when we used PHP to build up a query and send it to MySQL, MySQL then sent back a resource which could be massaged by any of the four techniques we discussed to get access to the data contained in the resource. So of all the MySQL commands such as SELECT, INSERT, UPDATE, and DELETE, SELECT is the only one to return a resource on success which requires further processing.…