Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

PHPº¯Êý(2)

in_array(value,array,type)        //¼ì²éÒ»¸öÖµÊÇ·ñÔÚÊý×éÖÐ,type¿ÉÑ¡,ÉèÖÃΪtrue¼ì²éÀàÐÍÊÇ·ñÏàͬ,·Ö´óСд
Àý:
$os = array("Mac", "NT", "Irix", "Linux");
if (in_array("Irix", $os)) {
echo "Got Irix"; ......

PHPÓÃmkdir()н¨Á¢Ä¿Â¼ÎÞдµÄȨÏÞµÄÎÊÌâ

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

php ±ý״ͼ

<?php  
    //±äÁ¿¶¨Ò壬»­ÍÖÔ²»¡Ê±µÄ½Ç¶È´óС  
    define("ANGLELENGTH",3);  
    /** 
     * »æÖÆÍ¼Æ¬ 
     * @param $title    3DͼµÄ±êÌâ 
......

php Öù״ͼ

<?php
//״ͼ
//http://www.codefans.net
//
function createImage($data,$twidth,$tspace,$height){
                        $dataName = array();
    &nb ......

40¸ö¼£Ïó±íÃ÷Ä㻹ÊÇphp²ËÄñ


ÄãÊÇPHP²ËÄñ£¬Èç¹ûÄ㣺
1. ²»»áÀûÓÃÈçphpDoc
ÕâÑùµÄ¹¤¾ßÀ´Ç¡µ±µØ×¢ÊÍÄãµÄ´úÂë
2. ¶ÔÓÅÐãµÄ¼¯³É¿ª·¢»·¾³ÈçZend Studio
»òEclipse PDT
ÊÓ¶ø²»¼û
3. ´ÓδÓùýÈκÎÐÎʽµÄ°æ±¾¿ØÖÆÏµÍ³£¬ÈçSubclipse
4. ²»²ÉÓÃijÖÖ±àÂëÓëÃüÃû±ê×¼

£¬ÒÔ¼°Í¨ÓÃÔ¼¶¨£¬²»ÄÜÔÚÏîÄ¿¿ª·¢ÖÜÆÚÀï¹á³¹Âäʵ
5. ²»Ê¹ÓÃͳһ¿ª·¢·½Ê½
6. ²»×ª ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ