|
我是怎样打造简单的PHP&MYSQL留言板的
|
|
来源:网络 作者:本站整理 发布时间:2007-08-14
|
|
function displayCounter($counterFile){ $fp = fopen($counterFile,"rw"); $num = fgets($fp,5); $num += 1; print "<div id=\"footer\">银子留言板 Version 1.0 您是第 "."$num"." 位无聊的银</div>"; exec("rm -rf $counterFile"); exec("echo $num > $counterFile"); } if(!file_exists($counterFile)){ exec("echo 0 > $counterFile"); } displayCounter($counterFile); ?>
</body> </html>phpma.com
(阅读次数:)
共6页: 上一页 [1] [2] [3] [4] [5] 6 下一页
|
| 上一篇:PHP中与数组相关的函数摘录 下一篇:IIS 6 的 PHP 最佳配置方法 |
|
[ 收藏]
[ 推荐]
[ 评论(0条)]
[返回顶部] [打印本页]
[关闭窗口] |
|
|
| |
|
|
|
|