By: admin

How to Sending Emails using PHPMailer

In php there is a mail function that helps you send mail, but this function has many limitations in use, specifically hosting rarely allows you to send mail with this function. To handle sending mail, we can use support libraries such as PHPMailer, Swiftmailer… PHPMailer is a very popular, multi-user mailing library. Here I will […]

Read more...

Instructions to install Japanese fonts, download Japanese fonts

In order for your computer to easily type Japanese fonts, installing Japanese fonts for your computer or laptop is relatively simple, great and will be very helpful for you to see the full content. Japanese website and those wishing to learn to use Japanese on computers, laptops. We have listed the basic Japanese fonts you can […]

Read more...

Enter and display invoice information in C plus using arrays

A simple example of information input and output in C++ using arrays, we will talk about an actual sales invoice example. Subject: Show sales invoice information on the screen as the following picture. – Enter invoice information including invoice code, quantity of goods, unit price. – Calculate the total amount of each bill, discount and the amount […]

Read more...

Setup project running PHP, Laravel with Docker

After learning about Docker convenience and some of the most commonly used concepts of Docker, let’s do an example of setting up a project to run Laravel on Docker, with services like php, mysql, server nginx. What we will do: – Install nginx, mysql, php -> Test run in browser with php web server nginx – Install […]

Read more...

Some basic concepts and commands are commonly used in Docker

Directives in Dockerfile such as RUN, FROM, CMD … to perform tasks that automatically generate Docker images. File docker-compose.yml to create services to run specific applications, for example create Apache, MySQL, PHP-FPM,…       1. Dockerfile Directives in Dockerfile such as RUN, FROM, CMD … to perform tasks that automatically generate Docker images. Use […]

Read more...

NodeJS Express SocketIO – Chat message and send image

When it comes to NodeJS, Realtime must be thought of. Realtime here is to process the communication from client to server in real time. NodeJS is an open source code widely used by thousands of programmers around the world. NodeJS can run on many different operating systems from Windows to Linux, OS X so that […]

Read more...

NodeJS – Simple CRUD APIs with MySQL

In this article, I will do a simple CRUD APIs in NodeJS, Express and MySQL. We learn how to create restful (create, read, update, delete) api in NodeJS.   API End Points, test on Postman: GET /learns: Give all learns stored in database GET /learns/{id}: Give a specific user with id. POST /learns : Create a […]

Read more...

How to connect PHP to MySQL database on another server using PDO and MySQLi

If normally the source code and database are on the same hosting server, you only need to set the server name to localhost. However, in many cases where we need to use an additional database or have an external server IP range, a little setup is required on this additional server. When connecting via IP […]

Read more...

Some useful MySQL query commands

This article lists some MySQL commands that may be helpful for you. I. MySQL commands 1. COUNT and GROUP BY If you want to display a list of how many tutorials are written by each user, you can use COUNT and GROUP BY. For example, we have the Blogs table as follows:     SELECT operator_id, count(*) as count […]

Read more...

Move large mysql database to new server

We all know the importance of a database in every system, in this article we ask you to back up, move database to another server. This will be easily handled if your db has a small number of records. And if the number of records is too large (a few million records or more) then exporting […]

Read more...