December 23, 2017 / Comments: 0

How to reset a password using PHP and MYSQL?

So in this tutorial, which will basically be a follow up to how to create a registration form, we will take a look at how to reset a password from already defined MYSQL table called sql_users. For this purpose, another table will be added that will handle password reset tokens which will only be active for 12 hours or until the password was successfuly reset. In the latter case, the token record will be erased from the table after the password is updated. First,...

Tags: php  mysql  html  

December 15, 2017 / Comments: 0

How to create PHP registration form with email activation?

A time comes when a project requires more than just one time user that will be managing a blog or a website so, for this purpose alone, we will be looking at how to create a simple registration form using PHP and MYSQL. To protect against spam user creation, I'll include the captcha condition that anyone using the registration form will have to pass to create an account. After the account is created, an email activation link with a unique key is assembled and sent to...

Tags: php  mysql  html  

November 30, 2017 / Comments: 0

How to create ADD, EDIT, DELETE system using PHP?

In this tutorial we will take a look at how to create a basic event system using PHP and MYSQL. The system will have an option to add, edit and delete events as desired. It will contain two files, one for manipulating events and the other to display the output. The former I will name addeditdel.php and the latter index.php. The style.css file will be added as a visual enhancement to the system which of course you may change according to your own likings. Regarding...

Tags: php  mysql  html  css  

November 17, 2017 / Comments: 0

How to restrict access to files and folders on a server?

That's the question that sooner or later everyone dealing with web development comes across in one's mind. Sometimes it is just too important not to let anyone access certain files or folders or even list them through a web browser. For this reason, we are going to take a look at how to do that with .htaccess on Apache server. Additionally, we will redirect everyone but specific IP addresses to a 404 page when calling for these files because by default, when...

Tags: .htaccess  apache  

November 10, 2017 / Comments: 0

How to make a contact form with Captcha using PHP?

Previously, we have looked into how to make a captcha image using PHP and now we are going to use it to make a simple but efficient, spam free, contact form. Once again, we will rely on PHP sessions to compare values of the generated captcha and input provided by a user. Other required conditions will be created in order to complete the form and send an email to the desired email address. The first part of the tutorial will contain the conditions and variables needed...

Tags: html  php  sessions  

October 27, 2017 / Comments: 0

How to create Captcha with PHP GD library functions?

So today, we are going to make a simple Captcha PNG image generator using built-in PHP GD library functions. For the purpose of this tutorial, things will be kept at minimum base level, yet customizable for a variety of needs. The plan itself is to create an image with your favourite image manipulation toolkit that will be used as background and to download the font of your choice to be used for the code generated. I will be using GIMP and Tahoma font for this...

Tags: php  

October 20, 2017 / Comments: 0

How to make a keyword density tool using Python?

Today we are going to take a look at how to create a basic keyword density tool using Python that you'll be able to use whenever desired. Only requirement is to have Python 3+ installed on your machine. Here are some of the features of the tool: - Reads the content from a text file - Trims all the special signs and line breaks that come with text before processing - No word filter - Analyzing multiple word query - Keeps consistency of words in multiple word...

Tags: python  seo