Home  >  Article  >  Backend Development  >  链接库(txt)与可以查询功能就这点分了。该如何解决

链接库(txt)与可以查询功能就这点分了。该如何解决

WBOY
WBOYOriginal
2016-06-13 13:40:26754browse

链接库(txt)与可以查询功能就这点分了。

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
$month = $_POST['month']; $filename = sprintf("1.txt"); $f = fopen($filename, "r"); if(!$f) { die("文件:".$filename."不存在."); } $lines = array(); while(!feof($f)) { $lines[] = fgets($f); } fclose($f); for($i = 0; $i 0) $lines[$i] = $m[0]; } echo "
"; echo ""; echo "";echo "
时刻 $month
左眼跳 $lines[$i][0]
右眼跳 $lines[$i][2]
"; ?>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn