How to Make PHP mail() Function Work in Localhost Server

There are several ways that could make PHP mail() function work in localhost. I haven’t tried them except for the solution below: Download sendmail and extract it on your desired location. Open sendmail.ini and enter the credentials needed: smtp_server=smtp.gmail.com smtp_port=465 auth_username=user@gmail.com auth_password=your_password Open php.ini and uncomment sendmail path and enter the path sendmail_path = “\”C:\sendmail\sendmail.exe\” […]

Display PHP Errors

The following code snippet will show php errors and warnings if there is any.

Create a Dynamic PDF File Based on User’s Input

When I need to create a pdf using PHP, I prefer to use the TCPDF library, because I find it easy to use and flexible. I the tutorial Create a PDF Using PHP and TCPDF, you will learn how to create a basic pdf file and add the desired content to it. But if you […]

Create a Graph Using PHP and SVGGraph

Creating a graph is very easy with the aid of SVGGraph library. You can download it here. This library supports almost all kinds of graphs such as pie graph, line graph, bar graph, and many more. In this tutorial, you will learn how to create a simple pie graph using PHP and SVGGraph. Simply copy […]

Create a PDF Using PHP and TCPDF

If you search online about how to create a PDF using PHP, you will find so many ways on how to do it. There are so many libraries that you can download together with easy to follow tutorials. But I prefer to use TCPDF because it allows me to easily create the content based on […]

Generate RTF File Using PHP

This tutorial will show you how to generate Rich Text Format file using PHP and RTF tags (not html tags). This is somehow complex compated to using html tags, but this will produce a better result.