Welcome to HowtoCodeStuff.com

Web Developer Journal

Null Variables

A Null variable is a variable that doesn’t have a value. A variable is considered Null in following scenarios: When you have created a variable but you haven’t assigned a value to it, then that variable is considered a Null variable. When creating a variable in PHP, you don’t always need to assign a value… read more »


XAMPP and WAMP are two competing PHP development stacks for those who are working on Windows. While both products serves for the same purpose, there is a separation in the development community over whether to go for XAMPP or WAMP. In this article I have tried to give you some insights into both products so… read more »

Comparison Operators

Comparison operators are used to create conditional expressions that evaluates to either TRUE or FALSE. Equals Operator (==) == is known as the ‘equals’ operator. It checks for the equality of its two operands. If both operands are equal in their values, the expression evaluates to TRUE. If two operand values are different from each… read more »

Making SSH Connections on Windows

Windows doesn’t come with built in SSH support so you have to rely on some third party software. There are several options available. You can install Git for Windows that includes Git Bash which supports making ssh connections. You can install Bitwise SSH Client. PuTTY and Cygwin are also among popular alternatives. I am using… read more »

How to detect an AJAX request in PHP

You can use below code block in your PHP scripts to check if an incoming HTTP request is made with AJAX or not. This can be useful in situations where you want to make sure your script only respond to asynchronous requests. It is important to note that HTTP_X_REQUESTED_WITH header is not enabled in all… read more »

How to reset linux user password?

I have a digital ocean instance running Ubuntu 16.04. On which I have disabled the root account for security purposes. For performing day to day tasks, I have created a user account called ‘test’. I enabled public key authentication for ‘test’ so that I can use some ssh client (putty or bitwise ssh client) to… read more »

How to check if Curl is available on your PHP Server?

First you can try phpinfo() function as shown in the below example. Create a file called phpinfo.php and add below code: When you save and run this script, the phpinfo() function will dump all the configuration information of your PHP installation. Scroll down until you see the word ‘Curl’ or hit Ctrl + F to… read more »

Installing Composer

Windows If you are on windows, the easiest way to install composer is by grabbing a copy of windows installer provided by the official composer website. The instruction are outlined below. Make sure you already have PHP installed in your system. It comes bundled with XAMPP, WAMP or otherwise you can install independently by downloading… read more »

How to perform form validations in Codeigniter

First you have to load the validation library in your controller’s constructor or in the method you are trying to perform validations. I recommend you to load it in the constructor so it will be available to all controller methods: Once the validation library is loaded, you can set the validation rules with below statement… read more »

How to Show/Hide Html Elements with jQuery

In this post I am going to show you how to show or hide elements of a web page by using jQuery. Create a new html file with your text editor and put below contents into it: Now suppose we want to hide the text ‘Hello World!’ when we click ‘Hide Title’ link. Lets see… read more »


Do NOT follow this link or you will be banned from the site!