位置:IT落伍者 >> php >> 浏览文章
[PHP]代码
<?php
//you should save this file as mphp
session_start();
if
(
empty
$page
)) {
=;}
(isset(
$_GET
[
page
])==TRUE) {
=
]; }
?>
<html>
<head>
<meta httpequiv=
"ContentType"
content=
"text/html; charset=UTF"
/>
<title>wwwqqviewcomRead Result</title>
<style type=
"text/css"
>
<!
STYLE {fontsize: px}
</style>
</head>
<body>
<table width=
"%"
bgcolor=
"#CCCCCC"
<tr>
<td >
){
$counter
file_get_contents
"exampletxt"
);
//read the file into a string
$length
strlen
$page_count
ceil
/);
function
msubstr(
$str
$start
$len
$strlength
+
;
$tmpstr
""
for
$i
=;
<
++) {
(ord(
substr
))==xa) {
<br />
}
))>xa) {
++;
else
{
); }
return
//截取中文字符串
$c
=msubstr(
)*);
*);
echo
)
));
}?>
</td>
</tr>
</table>
"#cccccc"
<td width=
align=
"center"
valign=
"middle"
><span
class
"STYLE"
> <?php
;?> / <?php
;?> 页 </span></td>
height=
"left"
<span
"<a href=mphp?page=>首页</a> "
!=){
"<a href=mphp?page="
">上一页</a> "
+)
">下一页</a> "
">尾页</a>"
</span> </td>
</body>
</html>
上一篇:解析如何修改php myadmin中的默认登陆超时时间
下一篇:浅析php学习的路线图