易截截图软件、单文件、免安装、纯绿色、仅160KB

PHP 无限分类

<?php
//作者:梁文平 http://www.tyasp.net
session_start();
if($_SESSION["username"]!="admin")
{
echo("<mce:script type="text/javascript"><!--
alert("操作超时!请重新登陆...");window.location.href="../index.php";
// --></mce:script>");
//header("refresh:0;url=../");
exit();
}
include("../../include/include.php");
$simple=new simple_gb;
$simple->linkdb($host,$user,$password,$db);
if($_GET["action"]=="submit")
{
$result=mysql_query("select max(ClassId)+1 as aa from newsclass");
$row=mysql_fetch_array($result);
$sql="insert into newsclass (ClassId,ClassDesc,ParentId) values("". $row["aa"] ."","". $_POST["txtClassDesc"] ."","". $_POST["dropParentId"] ."")";
mysql_query($sql);
echo("提交成功!");
exit();
}
/*
$sql="insert into news (newstitle,content,savedate) values("a","b","". date("Y-m-d H:i:s") ."")";
mysql_query($sql,$simple->con);
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF8" />
<title></title>
</head>
<body>
<link href="../Admin_Style.css" mce_href="Admin_Style.css" rel="stylesheet" type="text/css" />
<form id="form1" name="form1" method="post" action="?action=submit">
<table width="427" border="0" align="center" cellpadding="4" cellspacing="0">
<tr>
<td width="58">类别名:</td>
<td width="353"><label>
<input name="txtClassDesc" type="text" id="txtClassDesc" />
</label></td>
</tr>
<tr>
<td>父 类:</td>
<td><label>
<select name="dropParentId" id="dropParentId">
<option value="0">根目录</option>
<?php
$result=@mysql_query("sel


相关文档:

Linux中安装PHP 5教程

第一步 安装MySQL
[root@localhost usr]# groupadd mysql
[root@localhost usr]# useradd -g mysql mysql
[root@localhost usr]# cd /usr/local
[root@localhost local]# tar -zxvf mysql-5.0.51.tar.gz
[root@localhost local]# cd mysql-5.0.51
[root@localhost mysql-5.0.51# ./configure --prefix=/usr/local/my ......

php 安全模式的不足

PHP的safe_mode选项的目的是为了解决本章所述的某些问题。
但是,在PHP层面上去解决这类问题从架构上来看是不正确的,正如PHP手册所述(http://php.net/features.safe-mode)。
当安全模式生效时,PHP会对正在执行的脚本所读取(或所操作)文件的属主进行检查,以保证与该脚本的属主是相同的。
虽然这样确实可以防范本章中 ......

PHP加密解密内部算法

http://www.dedecms.com/knowledge/program/php/2009/0929/51.html
来源:PHP100 作者:PHP100er 发表于:2009-09-29 11:05  点击:
2363
最近学习URL跳转的时候新进三个超好用的PHP加密解密函数,貌似是discuz里的使用这些加密解密的原因是因为有时自己的URL地址被人获取以后想破解你里面传值的内容就必须知道你的key, ......

伪静态URL重写技术实现方法 php asp

 伪静态用到知识很简单一旦学会,快乐无穷,只需要正则和服务器设置。
 先说iis如何设置吧,往下看
 下载(IIS Rewrite模块): http://www.isapirewrite.com/,先把产品下载下来,安装在服务器上,记住目录,会有类似Rewrite.dll的文件生成,MMC→IIS信息服务管理器→网站→您的站点→属性,在&ld ......

PHP的安装以及配置

安装以及配置
1.       安装Apache-2.2.4(Apache_Dir=D:\myspace\Apache-2.2.4)
2.       解压安装PHP-5.2.11(PHP_Dir=D:\myspace\PHP-5.2.11)
3.       找到PHP-5.2.11下的php.ini-dist,改名为php.ini
4.  &nb ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号