Programming


The Importance of Scripting Languages - Sample PHP Tutorials

Whether you spend your day working fulltime as a web server administrator, or you like to host a simple website on a spare computer in your basement, one of the best ways to increase your productivity and develop very useful tools is to write programs called scripts. Scripts are normally short, high-level computer programs that [...]

Setting up the logout functions to clear the user session ID

PHP & MySQL Login Tutorial Series
Pt1: Introduction
Pt2: Setting up the database
Pt3: The front end and user validation
Pt4: The code to privatize a page
Pt5: Logout function and clearing the session ID
Part 5: Logout functions
Our final function is the logout function that will wipe our session. That function is simpler and looks like this:
<?php
function logout() {
$sessionid =$_COOKIE[test_account];
@setcookie [...]

The validation code for the pages you want private.

PHP & MySQL Login Tutorial Series
Pt1: Introduction
Pt2: Setting up the database
Pt3: The front end and user validation
Pt4: The code to privatize a page
Pt5: Logout function and clearing the session ID
Part 4: Privatizing your pages
Now let’s look at the status function. This function will be called on every page we want to protect. It will check [...]

The frontend form and the PHP user login validation script

PHP & MySQL Login Tutorial Series
Pt1: Introduction
Pt2: Setting up the database
Pt3: The front end and user validation
Pt4: The code to privatize a page
Pt5: Logout function and clearing the session ID
Part 3: Frontend form and validation
In this example we’re going to have a simple page that will display username and password text fields if a user [...]

Creating the database for your PHP & MySQL login script

PHP & MySQL Login Tutorial Series
Pt1: Introduction
Pt2: Setting up the database
Pt3: The front end and user validation
Pt4: The code to privatize a page
Pt5: Logout function and clearing the session ID
Part 2: Creating the MySQL database
Before we get to programming, let’s setup the databases. You will need to create two different tables—one for user accounts and [...]

30 Free web designs and web templates - .PSD and HTML included

We have a nice little free download for everyone out there. We are providing for FREE, to anyone who wishes to use them, 30 pre-made web templates and web designs. These are all professional looking templates that we were planning to use in the site builder we were working on however we no longer [...]

PHP Tutorial #3 - IF Statements

PHP Tutorial #3 - IF Statements
In order to make a successful PHP website, it is crucial to know how to correctly use if statements. IF statements, similar to CASE, have many advantages. Before we go further into these handy tools, let’s examine what they can do.
The IF statement allows you to control different parts of [...]