$socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create socket\n");
// connect to server
$result = socket_connect($socket, $host, $port) or die("Could not connect to server\n");
// send string to server
socket_write($socket, $message, strlen($message)) or die("Could not send data to server\n");
// get server response
$result = socket_read ($socket, 1024) or die("Could not read server response\n");
Hello, thank you for your fast answer, so I went to the link you gave me, and got me redirected to another thread, which talks about cURL and Sockets, so I used this code, but the server won't return me a response ...
My code:
Edit: I also tried adding the simple line socket_bind, but it returns me could not bind socket.. The proxy is use is a chinese socks4/5 proxy, should I use a http proxy instead? (I want to send a packet to a official game server)
$socket = socket_create(AF_INET, SOCK_STREAM, 0) or die("Could not create socket\n");
socket_bind($socket, $proxy_ip, $proxy_port) or die("Could not bind socket");
$result = socket_connect($socket, $host, $port) or die("Could not connect to server\n");
// send string to server
socket_write($socket, $message, strlen($message)) or die("Could not send data to server\n");
// get server response
$result = socket_read ($socket, 1024) or die("Could not read server response\n");
Proxy Socket 5 + Login und Passwort 08/08/2014 - World of Warcraft Trading - 0 Replies Verkaufe Socket 5 Proxy Server Ips zum Botten oder Anonymes Surfen im Internet.
Alles Proxys sind mit Login und Passwort.
Laufzeit : 30 Tage
Stück 3€
Nur Paypal Überweisung oder 4 Stück für 10€ Psc
Pn oder Skype
SELLING PRIVATE "Anonymous proxy" socket 4/5 02/19/2014 - Conquer Online 2 Trading - 1 Replies Just Beep me if your'e interested
Can use this for only botters/Cheaters
Working on : ConquerAI,ConquerGenius,Conquer Chrome!! :D:D:D