Well, in PHP connections are simple. For example, the most basic is IRC.
PHP Code:
$host = 'irc.rizon.net'; $port = 6667; $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); if (socket_connect($socket, $host, $port)) { echo "Connected to {$host}:{$port}\n"; while ($data = trim(socket_read($socket, 128))) { echo "Data read: {$data}\n"; } } else die ('Failed to connect, check that the host IP is correct and the port is open.');
$server = mysql_connect('localhost', 'root', 'test'); //'localhost' is the server, can be an IP. 'root' is the username, use whatever your is. 'test' is the password, again whatever yours is. if (mysql_select_db('conqueremu')) //'conqueremu' is the database name { $query = mysql_query('SELECT Level FROM characters WHERE Name=\'Ykage\''); // Select the value of 'Level' for the character with the in-game name of 'Ykage' while ($row = mysql_fetch_array($query)) // Fetch the array of results, in this case only one. So; we could use an if statement, but this is more generic. { echo "Level of Ykage is {$row['Level']}\n"; // Output it } } else die (mysql_error()); // We died because it's the wrong database, it doesn't exist?!!
[Tiny-Release]Basic HTML website 12/03/2011 - CO2 PServer Guides & Releases - 10 Replies Hey guys, I had some spare time so just decided to make a really simple website for you guys.
It looks like this:
Screenshot
Its very simple. So i hope you guys can learn a bit or two from it.
It contains an Elitepvpers link on the left column as you see, and a ready xtremetop100 picture and downloads link. //Shuttlecock FTW.
[Release] Basic Website 07/13/2010 - General Art - 0 Replies This is my first html/psd website made by me, very crappy but still my first. I don't know if this is the right section anyways. Thanks. >.< You can download it down there.
http://i25.tinypic.com/ejefd5.jpg
[RELEASE] Simple But Basic Conquer Website 01/22/2010 - CO2 PServer Guides & Releases - 2 Replies Hello
I coded this website all by myself
It's really basic but it is very good
Well, here is is
http://i46.tinypic.com/103y5mx.jpg
[Request] Basic website with register/ranking/reborn integrated 12/31/2009 - Dekaron Private Server - 1 Replies hello, is there a simple website that I can download that integrates register/ranking/reborn scripts? The release section only provides scripts. But I don't know to integrate them into one website. Please give me a sample so that I could study it and edit it if possible.