while (!feof($fp)) $buf .= fgets($fp,128); fclose($fp); return $buf;