Category: PHP

Get location from an IP address in PHP - Clue Mediator

Get location from an IP address in PHP

Today we’ll show you how to get location from an IP address in PHP. In this article, we will use the third party free API to get the geolocation (like...

Form Validation using jQuery in PHP - Clue Mediator

Form Validation using jQuery in PHP

Today we’ll show you how to implement form validation using jQuery in PHP. Moreover we will show you how to insert it into the MySQL database. There are two types...

Check Username availability using PHP and jQuery - Clue Mediator

Check username availability using PHP and jQuery

Today we’ll show you how to check username availability using PHP and jQuery. Generally we need to check if a username or email already exists or not during the registration...

Partially hide email address in PHP - Clue Mediator

Partially hide email address in PHP

You may have noticed that sometimes email addresses are partially hidden i.e. your******@gmail.com on google, social sites for verification and other security purposes. Today we’ll show you how to partially...

Check if a file exists in PHP - Clue Mediator

Check if a file exists in PHP

During coding, sometimes we need to check if a file exists in a given directory or not before processing it using PHP. So, today we will explain to you how...

Ajax POST request with JQuery and PHP - Clue Mediator

Ajax POST request with jQuery and PHP

Today we will explain to you how to make ajax POST request with JQuery and PHP. In this article we’ll simply create form in HTML and submit form data via...

Convert base64 to image file in PHP - Clue Mediator

Convert base64 to image file in PHP

Today we will show you how to convert base64 to image file in PHP. In the previous article we learned how to convert an image to base64 encoded string using...

Delete all files from a folder in PHP - Clue Mediator

Delete all files from a folder in PHP

Sometimes, we need to delete all files from a folder in PHP. So today we will explain to you how to delete files from a folder using php. delete images...