PHP mini-server download resulme-error! Resource id # 4
- by snikolov
<?php
$httpsock = @socket_create_listen("9090");
if (!$httpsock) {
print "Socket creation failed!\n";
exit;
}
while (1) {
$client = socket_accept($httpsock);
$input = trim(socket_read ($client, 4096));
$input = explode(" ", $input);
$range = $input[12];
$input = $input[1];
$fileinfo = pathinfo($input);
…