Posts tagged as "php"

The Simplest PHP Router

I wanted to create the absolute most basic routing code in PHP, so here it is. We will direct ALL traffic to and route to the new files…

How to Create a Snippet in Visual Studio Code

Here's how you make a custom, global snippet in VSCode. Press COMMAND + SHIFT + P to open the command palette. Find "Preferences…

Overview of SQL Commands and PDO Operations

Structured Query Language, or SQL , is a widely used language the allows users to query and manage data in a database. Databases such as…

How to Upload Files to a Server with Plain JavaScript and PHP

Writing the code to upload images to a server from scratch seems like a very daunting task. I'm going to make a very simple upload form to…

Create a Simple CRUD Database App: Connecting to MySQL with PHP] (Part 2: Update, Delete)

In the first part of this tutorial series , I taught you how to connect to a MySQL database with PHP using the modern PDO method. We…

Object Oriented Pattern: JavaScript Constructor Functions, ES6 Classes, and PHP Classes

I wrote an article on Understanding Prototypes and Inheritance in JavaScript for DigitalOcean, in which I explained how to use constructor…

How to Install Apache, PHP 7.1, and MySQL on Ubuntu with Vagrant

In order to run a server locally, we need to set up an environment for the stack, or server, database, and language, to run in. An easy way…

Create a Simple CRUD Database App: Connecting to MySQL with PHP (Part 1: Create, Read)

In this tutorial, we're going to learn how to make the beginnings of a very simple database app, using PHP and MySQL. It will be half of a…

How to Use JSON Data with PHP or JavaScript

JSON is used to transmit data between a server and a browser. Here is a basic example of what might be in a string. As you can see, it's…

WordPress Theme Development: Creating Custom Fields and Meta Boxes

In the first part of my WordPress tutorial series, we learned what WordPress is and how to create and use a basic theme . In part two…

WordPress Theme Development: Pagination, Comments, Functions, & Custom Posts

In part one of the tutorial series Developing a WordPress Theme From Scratch , we learned what WordPress is, what it can do, and how to do…

Migrating a WordPress Site to a Live Server

If you already know how to set up a local server and get WordPress up and running, migrating to a live server is extremely simple. We'll…

Developing a Wordpress Theme from Scratch

You know HTML, CSS, and JavaScript. You can make beautiful websites. Maybe you've heard about WordPress, but aren't entirely sure how to…

Setting Up Virtual Hosts

Did you read about how to set up a local server environment , or do you already know how to do that? The next step is setting up virtual…

Setting Up a Local Server Environment

My early experiences with web design and development only involved the front end - HTML, CSS and some JavaScript. As long as I had a browser…