FSockOpen Tutorial

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 »

Advertise On PK-Tuts

BBCode

Posted by Pete | Posted in PHP Functions | Posted on 16-07-2009-05-2008

0

Bulletin Board Code or BBCode is a lightweight markup language used to format posts in many message boards. Formats include [b]BOLD[/b] [i]Italics[/i] etc. We will show you how you can create your own function to accept BBCode and will show an example on how to use it.
Read the rest of this entry »

Generate Random String/Password

Posted by Pete | Posted in PHP Functions | Posted on 16-07-2009-05-2008

2

Having a secure password is important while surfing the internet. So generating a completly random password is a good way to stay secure. So with this fully commented function it will be simple to implement.
Read the rest of this entry »

Tutorials Written By Peter Kelly