Home » Programming

PHP $this Variable – What It Is, How To Use It [Examples]

PHP this

This article will explain the PHP $this variable – what it is, what it does, and how to use it – with code examples. PHP Objects and Classes PHP is an object-oriented programming language. Code and data can be stored in an object which represents the items your code represents with a set of properties and methods. For example, you might have objects that represent sales invoices, or cars, or pets, or people – each containing code and data relevant to the thing they represent. The properties or attributes of … Read more

Categories PHP

Home » Programming

How to Use Variable Variables in PHP, with Examples

PHP Variable Variables

Variable variables let you dynamically access variables by their name. Sound confusing? This article will explain PHP variable variables, and provide code examples. What is a variable? In computer programming, variables store a value, or reference to a value, for later use. Variables have names, and when you access a named variable, the value it contains can be read or updated. Declaring variables in PHP In PHP, a variable is declared when it is first used: Above, a variable named $myVariable is declared using the = (equals) operator, and assigned the … Read more

Categories PHP

Home » Programming

Top 3 Best (FREE) GUIs for PostgreSQL in 2022

PostgreSQL Best GUI

PostgreSQL is one of the most popular database systems in use today. GUIs make working with data in PostgreSQL simpler for beginners – here are the best free GUIs you can use on Linux in 2022. What is PostgreSQL PostgreSQL is an object-relational database management system (ORDBMS) for storing structured data. It provides a networked database server that can be used as the backend for your mobile apps, APIs, and webapps. It is also used for storing data for processing in analytics and data science. It’s free to … Read more

Home » Programming

How to Check that PostgreSQL Server is Running on Linux (Ubuntu/Debian/Red Hat/Fedora)

Check PostgreSQL Server Running

This tutorial will show you how to check that the PostgreSQL Server service is running on your Linux system. To install PostgreSQL follow our tutorial here. Checking PostgreSQL is Running on Ubuntu/Debian To check whether the PostgreSQL server service is running successfully on your Debian or Ubuntu system, run: Checking the Firewall By default PostgreSQL runs on port 5432 and is not restricted by host name. When installing PostgreSQL on Ubuntu, usually a firewall rule will be created automatically allowing access to the database server. You can confirm … Read more

Home » Programming

How to Update PostgreSQL on Linux (Ubuntu/Debian/Arch/RedHat)

How to Update PostgreSQL

This article will instruct you how to update the PostgreSQL database server on Linux – Redhat, Ubuntu, Debian, and Arch Linux. If you’re looking to install PostgreSQL server on your Linux system, follow our instructions here. Take Care, and Back Up! Note that this article is about updating the PostgreSQL package from your software repository. This will not upgrade to the next major release. Before you do update, however check which version will be installed and ensure it is compatible with the software you are connecting to the database. … Read more

Home » Programming

How to Upgrade the Release of PostgreSQL (Ubuntu/Debian/Red Hat)

How to Upgrade PostgreSQL

This article will show you how to safely upgrade the PostgreSQL database server to the latest version on your Linux system. First, Back Up Your Databases! Before making any changes to your system, you should perform a full backup – that way if something goes wrong, you can roll back to a working version quickly. At the very least, make sure that you’ve backed up your PostgreSQL Databases to protect from data loss. What is a Major/Minor Release? A major release is an update that greatly changes the functionality or … Read more

Home » Programming

How to Start, Stop, and Restart PostgreSQL in Linux

Start Stop Restart PostgreSQL

This short tutorial will show you how to start, stop, and restart PostgreSQL servers on your Linux system. PostgreSQL is a flexible database system that allows you to run multiple versions of the server software on the same host. This can get a bit confusing, but thankfully PostgreSQL includes all of the tools you need to make sense of things and control each server individually. How to Start PostgreSQL Service/Server To start the default or primary PostgreSQL server on your system, simply run the following … Read more

Home » Programming

PostgreSQL – Default Password/Resetting the Default Password

PostgreSQL Default User Password Reset

This post will explain how user accounts by default work in PostgreSQL, and how you can change the default password. PostgreSQL works a bit differently to other database servers like MySQL when it comes to the default behaviour of user accounts, so read on to find out how to manage access as the default PostgreSQL admin user. PostgreSQL uses the system users The default PostgreSQL configuration uses ident for authentication – this method uses the hosts operating systems usernames and compares them against the permissions stored for each database. This means … Read more

Home » Programming

How to Switch Active Cluster / Change Port in PostgreSQL in Linux

PostgreSQL Change Active Cluster Default Port

This article will demonstrate how to list the PostgreSQL clusters on your Linux system, and how to switch the active cluster. PostgreSQL is one of the most popular relation database servers. Multiple versions can be installed on the same host, so being able to switch between them is pretty useful. Read on to find out how to do it. What is a Cluster A PostgreSQL cluster is a collection of PostgreSQL databases with a shared configuration, managed. This configuration includes things like the executable that manages the … Read more

Home » Programming

Checking for Equality (And Inequality) in JavaScript, with Examples

Equality and Inequality JavaScript

This article will explain equality and inequality in the JavaScript Programming language, and provide code examples showing how to check if values are equal in value and type. Checking whether two values are equal can get a bit confusing in JavaScript – there is loose equality and strict equality involving types to consider. Read on to find out how testing for equality and inequality works in JavaScript. What are equality and inequality? In programming, equality is the process of checking whether two values are equal … Read more