Tivoilos Posted March 19, 2008 Share Posted March 19, 2008 I have a MMO I need a Whos Online List for it I will be working it in Sockets but I am not sure how to really make this can someone help plz. Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 19, 2008 Share Posted March 19, 2008 What is the game? Chances are there is a class readily available to query the game server and get that data. Quote Link to comment Share on other sites More sharing options...
Tivoilos Posted March 19, 2008 Author Share Posted March 19, 2008 There is none I've programmed it from scratch. Quote Link to comment Share on other sites More sharing options...
Tivoilos Posted March 19, 2008 Author Share Posted March 19, 2008 Ok so far this is what I have <?php // set the host $host = ""; //yes I do know you put stuff in there $port = ""; //same yea // No Time Out set_time_limit(0); // create socket $socket = socket_create(AF_INET, SOCK_STREAM, SOL_IP) or die ("Could not create the Socket, or there are some problems with the database/server please try later or contact: webmaster@forbiddengates.com\n"); // bind socket to port $result = socket_bind($socket, $host, $port) or die ("Could not create the Socket, or there are some problems with the database/server please try later or contact: webmaster@forbiddengates.com\n"); echo $_REQUEST["playername"]; echo $_REQUEST["gender"]; ?> But it tells me that this line $socket = socket_create(AF_INET, SOCK_STREAM, SOL_IP) is wrong I don't know where it's wrong any help plz Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted March 19, 2008 Share Posted March 19, 2008 what is the exact error message displayed? Quote Link to comment Share on other sites More sharing options...
Tivoilos Posted March 20, 2008 Author Share Posted March 20, 2008 Fatal Error: Call to undefined function socket_create()in/home/.yellow/forbidden/forbiddengates.com/phptest/whosonline.php on line 8 thats what it says Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 20, 2008 Share Posted March 20, 2008 Are you running this in a test environment or on a server hosted by a 3rd party? I found that the provider 1and1 does NOT support the socket functions after I transferred a site to them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.