Exploring Unit Testing in PHP

Exploring Unit Testing in PHP

Exploring Unit Testing in PHP When you’re beginning to explore unit testing in PHP, it can be helpful to start by creating test cases. This will allow you to see how your code works and ensure that it’s not causing any problems. It also provides you with the confidence you need to make changes to … Read more

Beginners Guide to PHP Part 1

Beginners Guide to PHP Part 1

PHP stands for “PHP Hypertext Preprocessor”, which is an acronym that refers to itself (oh, those clever geeks). PHP is, is an interpreted language most commonly used for web development. This means that you write lines of code in a text file, run the text file through a PHP parser (AKA an Interpreter), then the … Read more

Categories php

Beginners Guide to PHP Part 2

Beginners Guide to PHP Part 2

Code Looping Now that you have all of the tools needed to do storing and manipulate data, it’s time to cover how to loop through such actions. What if you wanted to loop over a set of equality and manipulation operations? Well, that is where code loops come into play. $loopStart=0;$loopEnd=20; while($loopStart <= $loopEnd){echo $loopStart;$loopStart++;} … Read more

Categories php

Beginners Guide to PHP Part 3

Beginners Guide to PHP Part 3

Variables Programming in any language is very limited without something called “variables”. Variables allow one to store data for later use, either to reference directly or to manipulate the data. You define a variable by using the dollar sign “$” and then the variable name. There are some limitations imposed on PHP variable names. Variable … Read more

Working with PHP Arrays and Objects

Working with PHP Arrays and Objects

Working With PHP Arrays and Objects When working with PHP arrays and objects, it is important to be aware of the different ways to access them. You can either assign a variable to an array or access the public properties of an object as an array. In addition, you can use the PHP functions for … Read more

Getting Started with PHP Development

Getting Started with PHP Development

Getting Started With PHP Development You may have been searching for the right way to get started with PHP development. If you have never done any programming before, there are a number of great tutorials and courses online to help you get up and running. However, you will have to decide whether to choose a … Read more

PHP Database Connectivity Basics

PHP Database Connectivity Basics

PHP Database Connectivity Basics When a web application needs to connect to a database, there are several different options available to it. Some of these are purely for development purposes, while others are for production use. It’s best to learn what these options are before attempting to connect to a database on your server. SELECT … Read more

Creating Secure PHP Applications

Creating Secure PHP Applications

Creating Secure PHP Applications If you are a developer, you need to learn how to create secure PHP applications. This includes avoiding common security mistakes like shared session stores, SQL injection, and cross-site scripting. Cross-site scripting attack Cross-site scripting attacks, also known as XSS, occur when a web site contains insecure code. These vulnerabilities can … Read more

Categories php

Building PHP CLI Tools and Scripts

Building PHP CLI Tools and Scripts

Building PHP CLI Tools and Scripts When building PHP CLI tools and scripts, there are several steps to follow. These steps include configuring the environment, installing a development package, writing a clean and compliant code base, and debugging and maintaining your code. You’ll find that these steps are all important and will help you get … Read more