This article will explain the difference between PHP and HTML and outline which you should use for your project (probably both – and I’ll explain why). If by the end of this article you’re still trying to navigate your way through the different web programming… Read More »PHP vs HTML – What’s The Difference? Which Should You Use?
This article will show you how to run both Python 2 and Python 3 scripts in Linux and find out what versions of Python are installed. Running a Script To run a Python 3 script: python3 /path/to/script.py To run a Python 2 script: python2 /path/to/script.py… Read More »How To Run a Python Script (Python 2/3)
This article will explain how to pass a PHP variable by reference and why you might want to do it – with some examples. What is a Variable? You probably already know this one. A variable stores a value – it has a name, and… Read More »Passing Variables by Reference in PHP, with Examples
There are one of two things you might be looking for – merging two MySQL tables, or the MERGE TABLE syntax – this article explains both, with examples. Merging Tables in MySQL (Moving Data From One Table Into Another) A note before I get to the code… Read More »Merge Tables in MySQL (UNION/MERGE TABLES) – Tutorial
This is a quick “now you know” article showing you how to validate your PHP code using PHP from the command line instead of using an online PHP validator. Online PHP Validators So, you’ve got some PHP code, and you want to check that it’s… Read More »PHP Validator – Safely Checking Your PHP Code Syntax Quickly and Easily
This article will show you, with examples, how to show what database privileges users have in MySQL and MariaDB. List All Users To show the privileges for a user, you need to be able to query the user’s name. Here’s how to generate a list… Read More »Show Privileges in MySQL/MariaDB using SHOW GRANTS, With Examples
In this article, you’ll learn about absolute values – what they are, how they’re used, and how to use the Python abs() function to calculate them. What is the Absolute Value of a Number? The absolute value of a number is that number’s value without any regard to its sign.… Read More »Calculating Absolute Values in Python, With Examples
This article will show you simple methods to pass command line arguments to your Python scripts, with some examples. Passing arguments to your script makes it easy to build multi-use scripts that can work on different inputs. This is much easier than re-editing your code… Read More »Command Line Arguments in Python Scripts, With Examples