Lines Matching refs:fp
12 $fp = fsockopen(PHP_CLI_SERVER_HOSTNAME, PHP_CLI_SERVER_PORT, $errno, $errmsg, 0.5);
14 if (!$fp) {
18 fwrite($fp, "GET / HTTP/1.1\r\n");
19 fwrite($fp, "Host: " . PHP_CLI_SERVER_HOSTNAME . "\r\n");
20 fwrite($fp, "Content");
21 fflush($fp);
23 fwrite($fp, "-Type: text/html; charset=UTF-8\r\n");
24 fwrite($fp, "Connection: clo");
25 fflush($fp);
27 fwrite($fp, "se\r\n\r\n");
28 while (!feof($fp)) {
29 echo fgets($fp);
31 fclose($fp);