Move http to https on WordPress

In this article, you will see how to add SSL and HTTPS in WordPress website.

It is recommended these days to move HTTP to HTTPS on WordPress is an important thing because most of in our websites we share sensitive data like credit card and bank information or login credentials dozens of times per day. As a website owner it is your duty to keep the information safe when users making online transactions for purchasing something using debit card, credit card or netbanking or they simply logging in to your site.

To protect the data transfer, a secure connection is required using one of the most important step – use HTTPS (Hyper Text Transfer Protocol Secure) and SSL (Secure Socket Layer) encryption on your website.

HTTPS or Secure HTTP is an encryption mechanism, which secures the connection between user’s browser and your server. That means, any information that is exchanged gets encrypted.

Continue reading “Move http to https on WordPress”

Save Files to MySQL using PHP

We have seen file upload using PHP in previous tutorials PHP file upload but in this tutorial we will see how to save files to MySQL database using PHP.

You may be wonder why you would need to save file content into database rather than just into the file system. In situations where PHP application needs to put entire file then the preferred method would be to put the file into server’s file system and save the file path into the database.

However in situations, where an application needs to save the entire file content into database along with other data. In such cases you have to put the file content into MySQL’s BLOB data type field.

Continue reading “Save Files to MySQL using PHP”

PHP Multiple Files Upload Example

This tutorial will show you how to upload multiple files using PHP. In this example the files are selected using the browse buttons and files are uploaded to the ‘uploads’ directory under root project directory. PHP script stores the files into the defined location and returns response as a success or failure message from the PHP script. As a validation step I have added only to check if you have selected at least one file for uploading or not.

You may want to read also PHP Single File Upload Example

This tutorial will give you more attachment link for uploading file, so you will click on Attach another file then you will get Choose File button to attach another file. If you do not want to upload the chosen file then you can delete the attached file using Delete link.

Continue reading “PHP Multiple Files Upload Example”

Multi-step Registration form using Codeigniter, MySQL, jQuery

Sometimes we need to capture lots of user details during registration process and as a result we got long forms on web page. So the best solution is to break the form into smaller logical section and present it into a multi-step registration form. This type of mult-step registration form always improves usability on web page comparing to very long form.

I am going to explain how to convert very long form into multi-step registration form using Codeigniter, MySQL and jQuery.

Continue reading “Multi-step Registration form using Codeigniter, MySQL, jQuery”

Quick Sort using C

Quicksort (sometimes called partition-exchange sort) is an efficient and very fast sorting algorithm for internal sorting, serving as a systematic method for placing the elements of an array in order. When implemented well, it can be about two or three times faster than its main competitors, merge sort and heapsort. In efficient implementations it is not a stable sort, meaning that the relative order of equal sort items is not preserved. Quicksort can operate in-place on an array, requiring small additional amounts of memory to perform the sorting. Continue reading “Quick Sort using C”

Bubble Sort using C

Bubble sort is one of the most popular sorting methods. It can be treated as a selection sort because it is based on successively selecting the smallest element, second smallest element and so on. In order to find the successive smallest elements this process relies heavily on the exchange of the adjacent elements and swaps them if they are in the wrong order.

Bubble sort has worst-case and average complexity both О(n2), where n is the number of items being sorted.

Continue reading “Bubble Sort using C”