Posted by Pete | Posted in PHP Tutorials | Posted on 28-09-2009-05-2008
1
Well after getting side tracked yet again I have written a user system for the users of PK-Tuts. In this part of the user system we will learn how to login and register will will also build some of the basic functions to check if you are logged in and logout. I will be expanding the user system in multiple parts so keep checking back.
Read the rest of this entry »
Posted by Pete | Posted in PHP Tutorials | Posted on 11-08-2009-05-2008
2
This tutorial will teach you how to protect your form’s from being submitted by bots. We will use a simple way, by creating a image using php with some randomly generated numbers then store it as a session and when the form is submitted we will check if the field in the form matches up with the numbers generated.
Read the rest of this entry »
Posted by Pete | Posted in PHP Tutorials | Posted on 10-08-2009-05-2008
0
ZIP’s are used for on both Linux and Windows Operating Systems. They can be used for compressing files and storing multiple files in one location. In this tutorial I will show you how to create and extract a ZIP Archive using PHP.
So lets get started. First I will show you how to create the ZIP Archive.
Read the rest of this entry »
Posted by Pete | Posted in PHP Tutorials | Posted on 09-08-2009-05-2008
0
In this tutorial I will show you how to use PHP Navigation. PHP Navigation is used on lots of websites which uses PHP. In this example we will show you how you can use this instead of an IFrame etc.
An example PHP Navigation url is http://www.yoursite.com/index.php?page=aboutus
Read the rest of this entry »
Posted by Pete | Posted in PHP Tutorials | Posted on 08-08-2009-05-2008
0
Sorry for not posting any new tutorials in the past few weeks as I’ve been away on holiday. But now I’m back I will show you how to create your own contact form. Contact forms are a easy way for you to allow the visitors on your site to quickly contact you.
To begin we will create the HTML form which will show the form. On the form we need 4 fields. Name, Email Address, Subject and Message and also a submit button. Once you have created the fields you need to set the form to POST the fields instead of GET. Below is the HTML I am using for this tutorial.
Read the rest of this entry »
Posted by Pete | Posted in PHP Tutorials | Posted on 18-07-2009-05-2008
4
Fsockopen is used to open a socket connection via PHP. In this tutorial we will show you how to test if a port is in use. This can be used as a status script for services.
FSockOpen
fsockopen ( string $hostname [, int $port= -1 [, int &$errno [, string &$errstr [, float $timeout= ini_get("default_socket_timeout") ]]]] )
Read the rest of this entry »
Posted by Pete | Posted in PHP Tutorials | Posted on 17-07-2009-05-2008
2
The explode function is used to grab certain information out of a file or string. This tutorial will show you how to explode out of both a file and a string.
Explode Structure
explode ( string $delimiter , string $string [, int $limit ] )
Read the rest of this entry »