Category Archives for "PHP"

PHP User Registration Form

This tutorial teaches about building a PHP User Registration Form. When user registering we collect their information such as username, email etc and storing in a database. The application uses this data for user authentication or user reporting etc. In this tutorial user adding their details in the registration form and a validation, script validates all […]


Better Way To Prevent Image Hotlinking with .htaccess

What is image hotlinking and how to prevent it? Image hotlinking – It is someone directly taking the image URL from your server and embedding it on their website. It’s kind of image stealing, but most importantly losing your bandwidth. Usually, you have to pay for the server bandwidth. When someone hotlinking the image in […]


PHP Redirect 301 permanently

You may want redirect one website to another for some reason. This article show you how to redirect a website to another using php scrips. When you do it should be more search engine friendly at any cost. PHP Redirect Code header("HTTP/1.1 301 Moved Permanently"); header("Location:"); exit;header("HTTP/1.1 301 Moved Permanently"); header("Location:"); exit; Basically […]


PHP date() with timezone?

How to get PHP date() with timezone?. PHP date() function returns a string formatted according to the given format string using the given integer timestamp or the current time if there are no timestamp is given. For example, you want print today’s date in Mon 27, Feb 2017. It’s very easy just follow the below […]