I am trying to test a Script which I got online and
will modify later (its from devshed)... It fails to set
up a connection...
// don't timeout!
// set some variables
$host = "18.104.22.168...";
$port = 1234;
$command = "/usr/games/fortune";
// create socket
$socket = socket(AF_INET, SOCK_STREAM, 0) or die("Could not create
// bind socket to port
$result = bind($socket, $host, $port) or die("Could not bind to
/* start listening for connections
* My Script Fails here...
* Any suggestions why it fails the Socket SetUp...
* Should I screw around with the port numbers?
$result = listen($socket, 3) or die("Set up Failed!");
echo "Waiting for connections...\n";
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php