Jump to content

PHP Game Online List


Tivoilos

Recommended Posts

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: 
[email protected]\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: 
[email protected]\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

Link to comment
https://forums.phpfreaks.com/topic/96979-php-game-online-list/#findComment-496330
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.