Posted in: PHP

How to Export Data to CSV File using PHP

In this tutorial, you will learn how to export PHP array data to a CSV file. The steps are as follows:

Let’s say we have an array of data in PHP, this data can be from any data source like a database table. For example, we have two fields employees: name and salary. This can be an associative array.

Read More “How to Export Data to CSV File using PHP”
Posted in: Apache, Nginx, SSL

How to Redirect http to https (SSL) in Apache or Nginx Server

In the previous article, we described on How to Setup Cloudflare SSL and Configure Origin Certificate for Apache. Now, if you have SSL certificate active on your domain, then you may want to force all requests to https. In this guide, you will learn how to force redirect incoming requests from http to https in Apache and Nginx web server.

Read More “How to Redirect http to https (SSL) in Apache or Nginx Server”
Posted in: Frameworks, PHP

Top 5 PHP Frameworks for Web Development

PHP is the most popular server side scripting language. As of 2019, almost 80% of websites use PHP across the world. The complexity of websites have increased a lot in the recent years. Developing such websites require a lot of work. So, it is not feasible for anyone to always start from scratch. Hence, there is a need for a more structured way to start any project.

Read More “Top 5 PHP Frameworks for Web Development”
Posted in: MariaDB, MySQL, Ubuntu

How to Reset MySQL Root Password in Ubuntu

For any reason, you may have forgotten MySQL root password and need to reset it. You can reset it if you have access to the server and a user having sudo privileges. Follow this simple guide and know how to reset MySQL root user password in Ubuntu.

In this guide, we use Ubuntu version 18.10. It should work with any modern Linux distribution like Ubuntu 18.04 and CentOS 7.

Read More “How to Reset MySQL Root Password in Ubuntu”