Posts from PHP

How to validate phone number in PHP?

By informerfrk

Here in this post, we are going to see how to validate phone number in PHP. In any situation, web developers need to validate the phone number that is submitted through a form. So.... Read More

Email validation in PHP using FILTER_VALIDATE_EMAIL

By informerfrk

Validating email on the server side is a secure way than validating it on the client side. If the email is validated just by using JavaScript then remember, JavaScript easily can .... Read More

Country information on clicking map – PHP script

Country information on clicking map – PHP script

By informerfrk | November 11, 2017

Here in this post, I am going to tell you about a PHP script. This is a script where a map will be shown on web page. After you click a country from the map, you will be redirected to a page where you will get several details about that specific country you clicked. Here […] Read More

Generate PDF from HTML template in PHP using Dompdf

By informerfrk

Here in this post, we are going to see how to generate the PDF from an HTML template. In brief, Dompdf is the HTML to PDF converter that is written in PHP and can be used by develo.... Read More

How to unzip or extract zip files in PHP?

By informerfrk

Today in this post, I am going to show you how to extract zip files in a specific directory path in PHP with the example code. PHP already has built-in class ZipArchive. To extrac.... Read More

Get the image size (height and width) in PHP

Get the image size (height and width) in PHP

By informerfrk | September 27, 2017

In this tutorial, I am going to tell you how to get the size of an image using PHP. The code snippets I am going to show you will retrieve the height and width of a given image file path. There is a PHP function already available which will let you know the size of […] Read More