Lines Matching refs:fs
34 $fs = stream_socket_accept($soc, 3);
39 fputs($fs, "I am passive.\r\n");
42 file_put_contents($tmp_file, stream_get_contents($fs));
45 fputs($fs, "drwxr-x--- 3 owner group 4096 Jul 12 12:16 .\r\n");
46 fputs($fs, "drwxr-x--- 3 owner group 4096 Jul 12 12:16 ..\r\n");
47 fputs($fs, "drwxr-x--- 3 owner group 4096 Jul 12 12:16 public_ftp\r\n");
50 fputs($fs, "\r\n");
53 fclose($fs);
235 if (!$fs = stream_socket_client("tcp://$host:$port")) {
240 $data = stream_get_contents($fs);
255 fclose($fs);
288 if (!$fs = stream_socket_client("tcp://$host:$port")) {
294 $fs=$pasvs;
303 fputs($fs, "file1\r\nfile1\r\nfile\nb0rk\r\n");
307 fclose($fs);
341 else if (!$fs = stream_socket_client("tcp://$host:$port")) {
356 fputs($fs, "For sale: baby shoes, never worn.\r\n");
362 fputs($fs, $transfer_type."Foo\0Bar\r\n");
368 fputs($fs, $transfer_type."FooBar\r\n");
374 fputs($fs, "Bar\r\n");
381 fputs($fs, "X");
383 fputs($fs, "Y");
390 fputs($fs, "This is line $i of the test data.\n");
398 if(isset($fs))
399 fclose($fs);