Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/standard/tests/network/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/standard/tests/network/fsockopen_variation1.phpt |
--TEST-- testing fsockopen without a protocol string --FILE-- <?php echo "Open a server socket\n"; for ($i=0; $i<100; $i++) { $port = rand(10000, 65000); /* Setup socket server */ $server = @stream_socket_server("tcp://127.0.0.1:$port"); if ($server) { break; } } echo "\nCalling fsockopen() without a protocol in the hostname string:\n"; $hostname = '127.0.0.1'; $client = fsockopen($hostname, $port); var_dump($client); fclose($client); echo "\nCalling fsockopen() with address and port in same string, without a protocol:\n"; $address = $hostname . ':' . $port; $second_client = fsockopen($address); var_dump($second_client); fclose($second_client); echo "Done"; ?> --EXPECTF-- Open a server socket Calling fsockopen() without a protocol in the hostname string: resource(%d) of type (stream) Calling fsockopen() with address and port in same string, without a protocol: resource(%d) of type (stream) Done
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare