|
You last visited: Today at 00:45
Advertisement
[request]for a basic website
Discussion on [request]for a basic website within the CO2 Private Server forum part of the Conquer Online 2 category.
06/11/2009, 07:00
|
#1
|
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
|
[request]for a basic website
just a basic website so that i can see how it all works in php and html
|
|
|
06/11/2009, 07:13
|
#2
|
elite*gold: 0
Join Date: Oct 2006
Posts: 45
Received Thanks: 14
|
|
|
|
06/11/2009, 07:18
|
#3
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
If you'd like, I could probably write up some tutorials on PHP websites. Just leave me a reply and what to write, and I'd be happy to help you learn.
|
|
|
06/11/2009, 07:19
|
#4
|
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
|
i just want to know how everything connects to everything
|
|
|
06/11/2009, 07:28
|
#5
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
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.');
EDIT: And yes, I fking hate fsocket's x.x
|
|
|
06/11/2009, 07:44
|
#6
|
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
|
wat i ment was how a registerpage would connect to mysql
|
|
|
06/11/2009, 07:49
|
#7
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
PHP Code:
$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?!!
|
|
|
06/11/2009, 07:51
|
#8
|
elite*gold: 0
Join Date: Mar 2008
Posts: 555
Received Thanks: 99
|
thanks that helps abit
|
|
|
06/11/2009, 07:53
|
#9
|
elite*gold: 0
Join Date: May 2008
Posts: 1,769
Received Thanks: 1,143
|
No problem, if you need anything else give me a shout.
|
|
|
 |
Similar Threads
|
[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.
|
All times are GMT +1. The time now is 00:45.
|
|