Posts by Faruque Ahamed Mollick

Author Biographical Info: Not available

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

How to stop JavaScript setInterval() after a certain time period?

By Faruque Ahamed Mollick

We have already learned how to run our JavaScript code every n seconds periodically. Now in this tutorial, we are going to see how to stop the JavaScript setInterval() method from .... Read More

Run your JavaScript code every n seconds using setInterval() method

By Faruque Ahamed Mollick

In many times it is needed to run a JavaScript code periodically with a time interval. For example, in live online conversation or messaging system it needs to send AJAX request in.... 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

Set a default image for broken or Unavailable image URL in JavaScript

By Faruque Ahamed Mollick

When the URL of an image on the web page is no more available then the images can’t be seen also on the web page and on many of the browsers, it shows some kind of marking th.... Read More

How to reload an iframe in jQuery?

By Faruque Ahamed Mollick

In this tutorial, you are going to learn how to reload an iframe using jQuery code. We use the HTML iframe tag to load external content, videos or web page into our own web pages. .... 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

How to detect the file extension in PHP?

By Faruque Ahamed Mollick

Detecting file extension from file path is quite easy. PHP already has a built-in function that can check a file and return the extension name of that file. It is PHP pathinfo() f.... Read More

Related Posts