Áª¶¯ÏÂÀÁбí php
ÕÒµ½Ò»¸öÄÜÓÃµÄ ·ÖÏí¸øÄã°É
¸ÕÒѾÔÚ±¾»ú×ö¹ýÈÏÕæ²âÊÔ£¬¾ø¶ÔÎÞÎÊÌâ
£¨±í½á¹¹:
id ±íID£¨Î¨Ò»£©
title ¸÷Àà±êÌâ
flid Àà±ðµÄID £¨´óÀàΪ1 ÖÐÀàΪ2 СÀàΪ3£©
pid ÉÏÀàµÄID£¨´óÀà¾Í¸ú´óÀ࣬Ìá½»ÖÐÀàµÄʱºòÕâµØ·½Ð´´óÀàµÄID£¬ÌύСÀàµÄʱºòдÖÐÀàµÄID£© £©
<?php
$link=mysql_connect("localhost","root","root") or die("Êý¾Ý¿â·þÎñÆ÷Á¬½Ó´íÎó".mysql_error());
mysql_select_db("sanji",$link) or die("Êý¾Ý¿â·ÃÎÊ´íÎó".mysql_error());
mysql_query("set character set gb2312");
mysql_query("set names gb2312");
?>
<html>
<head>
<title>ÏÂÀ¿òÁ¬¶¯</title>
</head>
<body>
<script language="JavaScript">
<!--
var subcat = new Array();
<?
$i=0;
$sql="select * from sanji where flid=2";
$query=mysql_query($sql,$link);
while($arr=mysql_fetch_array($query))
{
echo "subcat[".$i++."] = new Array('".$arr["pid"]."','".$arr["title"]."','".$arr["id"]."');\n";
}
?>
var subcat2 = new Array();
<?
$i=0;
$sql="select * from sanji where flid=3";
$query=mysql_query($sql,$link);
while($arr=mysql_fetch_array($query))
{
echo "subcat2[".$i++."] = new Array('".$arr["pid"]."','".$arr["title"]."','".$arr["id"]."');\n";
}
?>
function changeselect1(locationid)
{
document.form1.s2.length = 0;
document.form1.s2.options[0] = new Option('==ÇëÑ¡Ôñ==','');
for (i=0; i<subcat.length; i++)
{
if (subcat[i][0] == locationid)
{document.form1.s2.options[document.form1.s2.length] = new Option(subcat[i][1], subcat[i][2]);}
}
}
function changeselect2(locationid)
{
document.form1.s3.length = 0;
document.form1.s3.options[0] = new Option('==ÇëÑ¡Ôñ==','');
for (i=0; i<subcat2.length; i++)
{
if (subcat2[i][0] == locationid)
{document.form1.s3.options[document.form1.s3.length] = new Option(subcat2[i][1], subcat2[i][2]);}
}
}
//-->
</script>
Èý¼¶Áª¶¯£º<BR>
<form name="form1">
<select name="s1" onChange="changeselect1(this.value
Ïà¹ØÎĵµ£º
64λ¶¯Ì¬phpÀ©Õ¹¿âµÄ±àÒë
¹¤×÷ÉÏÐèÒª£¬Õâ¸öÎÊÌâÕÛÌÚÁËÒ»Õó×Ó¡£²»¹ýµ±±àÒë³É¹¦Ö®ºó£¬ÐÄÀﻹÊÇÏ൱µÄÐË·Ü£¬¸ÐÊܵ½ÁËÒ»Öֳɾ͸С£Ò²Êǹ¤×÷ÖеÄÒ»ÖÖÀÖȤ¡£
ÏÖÔÚ½«Õû¸ö¹ý³ÌдÏÂÀ´£¬ÒÔ±¸ºóÐøÖ®Ðè¡£
a.shared object
(1) download and install the apache
´ÓÍøÂçÖÐÏÂÔØapache-2.0.48.tar.gz
´æÖÁ/home/tmp
cd /home/ ......
ÀûÓ÷ÉÐÅAPIʵÏÖ¹«Ë¾ÄÚ²¿·¢ËͶÌÐÅ¿ÉÒÔʡϲ»ÉÙÇ®.ÍøÉÏÒ²Óв»ÉÙ·ÉÐÅAPI,µ«¸Ð¾õ²»¿É¿¿,
»¹ÊÇ×Ô¼ºÐ´ÁËÒ»¸ö¼òµ¥µÄAPI.µ÷ÓõØÖ·ÈçÏÂ,²»»á¼Ç¼·ÉÐÅÃÜÂë.
ϲ»¶µÄÅóÓÑ¿ÉÒÔÊÔÊÔ,½áºÏAU3ÓÖдÁ˸öUDF.ÕâÏ·¢¶ÌÐÅ·½±ãºÜ¶àÁË.
http://lab.l4ever.cn/fetion/api/?from=·¢ËÍÊÖ»ú&pw=·ÉÐÅÃÜÂë&to=½ÓÊÕºÅÂë&msg=¶ÌÐÅÄÚÈ ......
//
dirname()
// Returns directory name component of path
basename()
// Returns filename component of path
pathinfo()
// Returns information about a file path;
// pathinfo() returns an associative array containing information about path .
parse_url()
// Parse a URL and return its comp ......
ÆÕͨË÷Òý ¹Ø×¢Õâ¸öÁРΨһË÷Òý Ö÷¼ü ¶àÁÐË÷Òý ¹Ø×¢¶à¸öÁÐ Àý£º¶àÁÐË÷Òý F1 F2 F3 µ¥²éF2»òF3Ë÷ÒýÎÞЧ Ë÷ÒýÊÇΪÁ˼ӿì¼ìË÷ Êý¾Ý¿â µÚÒ»·¶Ê½£º Ò»¸ö±íÖеÄÁÐÓ¦¸ÃÊDz»¿ÉÔٷֵģ¬È·±£ÁеÄÔ×ÓÐÔ µÚ¶þ·¶Ê½£º Ö»ÓÐÖ÷¼ü²ÅÄܱíÏÖÊý¾ÝÌØÕ÷£¬¶ø·ÇÖ÷¼üÁл¥²»¸ÉÉ棬ȷ±£Ê ......
Ç°ÑÔ£º
¡¡¡¡FCKeidtorÊǸö¹úÍâµÄ¶àÓïÑÔ±à¼Æ÷£¬Äã¿ÉÒÔ¶ÔÆäÅäÖÃÎļþ½øÐмòµ¥ÐÞ¸Äʹ֧֮³ÖÄ¿Ç°³£ÓÃWeb¿ª·¢ÓïÑÔµÄÓ¦Óã¬ÏÂÃæÎҾͽ²½²FCKeditorµÄ×îа汾2.4.2ÔÚphpµÄ¾ßÌåÅäÖùý³Ì£¬Óв»×ãºÍ³ö´íµÄµØ·½£¬»¶ÓÖ¸Õý¡£
¾«¼ò£º
¡¡¡¡ÕýÒòΪÕâ¸ö±à¼Æ÷ÊÇÖ§³Ö¶àÓïÑԵģ¬ËùÒÔÊ×ÏÈÎÒÃÇÕë¶ÔʹÓöÔÆä×öÏàÓ¦µÄÈßÓàÎļþɾ³ý¡£
¡¡¡ ......