PHP

Display Text File Content In The Page Using PHP

Submitted by argie on
This is a continuation of previous tutorial on Save Data To Text File Using PHP. This tutorial will teach you on how to display text file content in our page using PHP. The feature of this program is it allows you to echo or output all the save in our text file. Follow the details bellow on how to this code.

Creating Our Script that Display text file Content

The code bellow includes the link source of our text file. I used nl2br and file_get_contents to display the text file contents.

Simple Login System: Auto Logout after 15 Minutes of Inactivity

Submitted by ronard on
Hi, In this tutorial will teach you on how to auto logout the system if there is no activity on the page within 15 minutes. This will protect the account of the user who forgot to logout. The script attached is just a simple and easy to learn. Just unzip the downloaded zip and in the "db" folder having a "tutorials" folder and just copy it and then paste in this path (xampp/mysql/data/). And then

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