摘要:
cat get_pipedata.php#!/usr/bin/env php<?php#========================================================#testing how to get data from pipe#========================================================$fp=fopen('php://stdin','r');$result='';while(!feof($fp)){ $result.=fgets($fp,128) 阅读全文