Welcome to HowtoCodeStuff.com

Web Developer Journal

Syncing an Audio Clip with Text captions

Below analysis and code sample is posted as an answer to this question posted on Facebook groups. If you go to the page http://quizresults.manifestationmiracle.net/?name=Hasan&q=aabbabc and enable its ‘view source’, you should see they are loading few javascript libraries. jquery, and jquery-ui should be familiar to most of you. They also load a jquery plugin called… read more »

Updating a MySQL table with MySQLi

Below code sample is posted as an answer to this question posted on Facebook groups. Create a new database with phpMyAdmin and execute below SQL query in its SQL tab to create a new table called ‘notes’. It will have three fields. id, title and contents. Then’ll lets populate it by adding a single record…. 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 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 »

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 »

How to include jQuery in your HTML Page

jQuery is a popular Javascript library which makes it easier for you to manipulate elements of your HTML page once it is loaded into the browser. To use jQuery first we have to include it in our HTML pages. You have couple of options when it comes to including jQuery in your HTML pages: You… read more »

Create a new github account

On github.com home page there is a link named ‘Sign Up’ located to the right of the top navigation bar. Click on that link and it will take you to the new account registration page. As you’ll see its going to be a three step process and should be self-explanatory to the most people. In… read more »

Site can’t be reached

Have you seen this screen whenever you tried to load one of your own websites in the browser? So what causes this and how to fix it? Technically this error comes up when the HTTP service is not running on the server (in this case ‘localhost’). HTTP request are served through the HTTP service which… read more »

Installing Apache Server on Ubuntu 16.04

First step is to logging into your linux shell. For this tutorial I am using a VPS (A Digital Ocean Droplet running Ubuntu 16.04). I have opened an ssh connection to server using Bitvise SSH client. Having logged in, first run below command to get an updated list of packages from your system’s software repositories:… read more »


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