日期:2014-05-16 浏览次数:20508 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="author">
<meta name="Keywords" content="cstp">
<meta name="Description" content="no-description">
<meta http-equiv="Content-type" content="text/html;charset=GB2312">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div id="header"><b>5就会感觉和国际化</b></div>
<div id="content">
<div id="show">
<p>
<?php
function m_substr($str,$start,$length){
$str_length=$start+$length;
$tmp_str="";
for($i=0;$i<$str_length;$i++){
if(ord(substr($str,$i,1))==0x0a){
$tmp_str.='<br/>';
}
if(ord(substr($str,$i,1))>0xa0){
$tmp_str.=substr($str,$i,2);
$i++;
}
else{
$tmp_str.=substr($str,$i,1);
}
}
return $tmp_str;
}
if(isset($_GET['page'])){
$page=$_GET['page'];
}else{
$page=1;
}
$counter=file_get_contents("example.txt");
$length=strlen($counter);
$page_count=ceil($length/400);
$str=m_substr($counter,0,($page-1)*400);
$str1=m_substr($counter,0,$page*400);
echo substr($str1,strlen($str),strlen($str1)-strlen($str));
?>
</p>
</div>
<center><span>
<?php
echo "阿萨德?:".$page."/".$page_count." ";
echo "<a href=index.php?page=1>请问?</a> ";
if($page>1){
echo "<a href=index.php?page=".($page-1).">自行车??</a> ";
}
if($page<$page_count){
echo "<a href=index.php?page=".($page+1).">地方??</a> ";
}
echo "<a href=index.php?page=".$page_count.">β?</a>";
?></span></center>
</div>
<div id="footer"><br>阿萨德?</div>
</body>
</html>
<?php
function m_substr($str,$start,$length){
$str_length=$start+$length;
$tmp_str="";
&n