PHP

Forum Tutorial - User Levels #3 - Admin Privileges, Banning Users & Logging Out

Submitted by Yorkiebar on
Introduction: This tutorial is the third and final episode to the User Levels section of my Forum Creation Tutorial series. In this part, we are going to be adding banning functionality and giving the admins their privileges. Admin Privileges: This part is essentially the same as the moderator privileges part found the previous tutorial.

Save Data To Text File Using PHP

Submitted by argie on
This tutorial will teach you on how to save data on text file using php. The feature of this tutorial is it will allow you to save information without using any database. It also provide a confirmation message that you have successfully save the data in the text file. To understand more this tutorial follow the steps bellow.

Creating Our Form

The code bellow will display the form and the confirmation message generate by our php server.

Forum Tutorial - User Levels #1 - Setting Up & Altering Register Functions

Submitted by Yorkiebar on
Introduction: This tutorial will be continuing my creating a forum in PHP/MySQLi/HTML tutorial series. I have received a request to implement user levels to the system, so this tutorial will be setting up the things we need, and adjusting the register script to avoid errors. The Theory: Each user will have an access level, each of which have different permissions.

Forum Tutorial - Deleting Posts

Submitted by Yorkiebar on
Introduction: This tutorial is on how to add the ability for a user to delete their posts. The Theory: We could add a user panel where it lists all the users posts along with options to delete them, but instead we are going to add a delete option adjacent to the post itself to save space - plus I'm planning on making an admin panel tutorial soon. The PHP: So in the part of the PHP where we actually output each reply to a thread, we want to check if the logged in users' username held in the session variable is equal to the author of the post,

Forum Tutorial - Email Verification

Submitted by Yorkiebar on
Introduction: This tutorial will be covering how to add email verification to your user account registration page. As a base for this tutorial, I will be using my already made series of pages from my forum creation series which can be found on my account tracking page (there's around 20 parts!). The Theory: The way this verification is going to work is; The user will enter their email upon registration. A ticket will be created and stored in our database containing a unique string which will be emailed to the users email address. The email will be sent

Get the Difference of Two Time using PHP

Submitted by argie on
This tutorial will teach you on how to get the difference of two time in PHP using php shorttime function. This code will help to thus programmer who want to limit the number of attempts in failed login and can login again with the defined time. To understand more about this tutorial, follow the steps bellow.

Creating Our script that get the difference and display the result

The code bellow will subtract and get the difference of two time using the php date and short time function.