Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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ÓÃmkdir()н¨Á¢Ä¿Â¼ÎÞдµÄȨÏÞµÄÎÊÌâ

PHPÓÃmkdir()н¨Á¢Ä¿Â¼ÎÞдµÄȨÏÞµÄÎÊÌâ
ÔÄÀÀ´ÎÊý:
½ñ
Ìì:0 ×Üä¯ÀÀ:526
ÎÄÕÂÀ´Ô´: CPÕûÀí
Ô­ÎÄ×÷Õß:
ÕûÀíÈÕÆÚ: 2008-08-14
º¯ÊýmkdirÓÐÁ½¸ö²ÎÊý£¬Ä¿Â¼Â·¾¶ºÍ·ÃÎÊȨÏÞ
Àýmkdir('/tmp/test',0777)
È»ºóÒªµÃµ½µÄȨÏÞÂ룬²»Ò»¶¨ÊÇÉϱßÉ趨µÄ£¬µ±Ç°ÏµÍ³µÄumask½«»áÓëÉ趨µÄÖµ‘Óë’£¬ÕâÑù×Ó²ÅÊÇÕæÕýµÄȨÏÞ ......

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±¸·ÝÈËÈËÍøÈÕÖ¾½Å±¾ ver 0.1

½ñÌìȷʵÊÇÎÞÁÄÁË£¬Ð´ÁËÒ»¸ö±¸·ÝÈËÈËÍøµÄÈÕÖ¾£¬µ½±¾µØhtmlµÄÀà¡£
Ö÷ÒªÊÇcURLµÇ¼£¬ÕýÔò½âÎöÒ³Ãæ¡£
ʹÓ÷½·¨£¬×îºóÄǸö½Å±¾µÄ×îºóÁ½Ðиĵô£¬ÄãÖªµÀµÄ¡£»òÕßÖØÐÂдһ¸öÔËÐнű¾£º
<?php
include("renren.php");
$test = new renren("ÄãµÄÈËÈËÍøÕ˺Å","ÄãµÄÈËÈËÍøÃÜÂë");
$test->do ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ