PHP

PHP/MySQLi Creating a Forum - Part 13 - User Page #3 - Sending Messages

Submitted by Yorkiebar on
Introduction: This tutorial will be continuing my series of creating a forum in PHP/MySQLi/HTML. In this thirteenth part, We will be continuing our user page, more precisely, we will be adding a message form for the logged in user to contact the specified user. Pre-creation: First you will need a host for your PHP, either a web host or localhost is fine but you will need PHP and MySQL(i) capabilities. Also, this will not be covering creating users, or styling the pages.

PHP - Users Online Script

Submitted by softafzar.net on
Hello, if you are developing a web application, you may need this online users script to show how many users is online. Yesterday i wrote a php class for it and decide to share it. Creating table Well, Before using this class, you must create a table in your database: CREATE TABLE `online_users` ( `session_id` char(150) NOT NULL, `last_activity` int(11) NOT NULL default '0' ); Creating php file

PHP File Handling: File Append

Submitted by joken on
In our previous tutorial we have learned how to open, close, read and write to a file. However, the ways which we wrote to a file so far have caused data that was stored in the file to be deleted. So in this lesson we’re going to deal on how to append to a file or to add on to the existing data, but we need to open the file in append mode. To start with, this application and if we want to add on to a file we need to open it up in append mode. To do this, let’s create first a new file PHP file called “append.php”.