If you want loading a HTML from an external server. It doesn’t matter if you want to get content from page with meta charset=”utf-8″, we use file_get_contents() function normally. But if it is not utf-8, another code like Shift_JIS or any other. You will get something similar to this: I tried both saving […]
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 […]
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 […]
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 […]
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 […]
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 […]