Tag: php

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...

Convert PDF to text file using PHP

If you need to read data from PDF converted to text file using PHP, the following example will solve that problem. It is very simple and concise, easy to do. This example uses pdfparser library to read text, image files in pdf files. (https://www.pdfparser.org). 1. Install pdfparser library In your source folder, create a composer.json file […]

Read more...

Convert HTML form data to PDF file with PHP

PHP is still a very popular language and it is very easy to retrieve data and display lists, so if you need to print the list to A4 paper, you will have to do it. The following content shows how to use the Mpdf library to print the data to a pdf file, from here you […]

Read more...

How to import data from excel file, csv into the database and export back

As you know, database is a very important component in every website, information is stored and manipulated on it. Assuming you need to change or upgrade the database management system, physical memory or data from a 3rd party that wants to import into your database, we have many ways to do, in this article, I […]

Read more...

PHP – MVC CRUD and Connect to MySQL using PDO

Basic knowledge is always very important, in this article I will introduce to you how to use the PHP – MVC model, using PDO to connect to MySQL. What is PDO?  It is an acronym for “PHP Data Objects”. Until now, the functions used were divided according to the type of database. For example: – When connecting […]

Read more...