1 / 20
文档名称:

PHP学习笔记(实用).doc

格式:doc   大小:142KB   页数:20页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

PHP学习笔记(实用).doc

上传人:xxj16588 2018/1/10 文件大小:142 KB

下载得到文件列表

PHP学习笔记(实用).doc

文档介绍

文档介绍:一款好的CMS 系统
BEESCMS
************************** 头文件定义方式*********************************************************
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Transitional//EN" "/xhtml1/DTD/xhtml1-">
<html xmlns="9/xhtml">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<title>xxxxx</title>
<link rel="stylesheet" type="text/css" href="" />
<script src="jquery-" type="text/javascript"></script>
<script type="text/javascript">
<script>
</head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="0">
定时刷新页面
<meta http-equiv="refresh" content="60;URL=http://localhost/jtz/">
if(empty($p_yanzheng))alert_back('登录失败:验证码不正确!');
function delFeedbackIP()
{
var qstr=getCheckboxItem();
if(qstr=="") alert("你没选中任何内容!");
else if(('你确定要删除这些评论吗?')) ="?job=delall&fid="+qstr;
}
function checkFeedback()
{
var qstr=getCheckboxItem();
if(qstr=="") alert("您没选中任何内容!");
else ="?job=check&fid="+qstr;
}
(一)PHP*****************************
******************************************************
() 函数来确认是否已设置了 cookie或其他if (isset($_COOKIE["user"]))echo "e " . $_COOKIE["user"] . "!<br />";else echo "e guest!<br />";?>
创建setcookie("user", "Alex Porter", time()+3600);||取出echo $_COOKIE["user"];||删除cookie setcookie("user", "", time()-3600);
*session_start() 函数必须位于<html> 标签之前||$_SESSION['views']=1;||$_SESSION['views'];||
unset($_SESSION['views']);
() 函数计算数组中的单元数目或对象中的属性个数。
() 函数把字符串中每个单词的首字符转换为大写。
将字符串转换成数字$time=intval($time)+1;
(!file_exists) 判断文件是不是一个文件用if(!is_file(""))
("","1");规定要写入数据的文件。如果文件不存在,则创建一个新文件
9.$time=file_get_contents(""); 函数把整个文件读入一个字符串中
表示文件的修改时间filemtime($tpl_file_pa