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