Posts from PHP

Domain Authority and Page Authority Checker PHP Script Source Code

By Faruque Ahamed Mollick

Domain Authority is so important metric for any website or blog. This metric decide the search ranking for popular search engines like Google, Bing or Yahoo. More Domain Authority .... Read More

How To Display A Random Image From Directory In PHP?

By Faruque Ahamed Mollick

Suppose we have a directory that is contained with some images and we want to display one of those images on our web page. The image that will be displayed on the web page will ran.... Read More

Easy to use PHP function to show random image from a particular directory

By Faruque Ahamed Mollick

In this post, we are going to see a PHP function that is very easy to use and can be used to show a random image from a particular directory on our web page. Below is the code of o.... Read More

How to create a constant in PHP?

By Faruque Ahamed Mollick

In PHP, a constant is an identifier or simply a name that store value. the constant value can not be changed during the script. Constants can be defined and then accessed anywhere .... Read More

Create a directory if it does not exists in PHP

By Faruque Ahamed Mollick

Creating a directory in PHP is so easy. In just one line of code, we can make a directory. The PHP function that used to make a directory is mkdir(). Suppose, we want to make a di.... Read More

How to remove the extension and return only the file name in PHP?

By Faruque Ahamed Mollick

In this post, we are going to see how to remove the extension part and then return only the file name in PHP. Here we are going to do it with the simplest way. The PHP pathinfo() .... Read More

Listing files from directory that have particular extensions in PHP

By Faruque Ahamed Mollick

In this tutorial, we will see the PHP code snippet that will get and list the files from a directory with the particular extensions. Now let’s start. Assume that we have a di.... Read More

Display the country flag of visitors in PHP

By Faruque Ahamed Mollick

Today, we are going to see a very interesting topic of PHP in this post. We find on several websites that show the flag of our country. It doesn’t mean that your country fla.... Read More