PHPÎÞÏÞÌݹé
<?php
class Tree
{
// public $data=array();//ËùÓнڵãÖµ
// public $cateArray=array();//ËùÓи¸½Úµã
function Tree()
{
}
//setNode(Ŀ¼ID,Éϼ¶ID£¬Ä¿Â¼Ãû×Ö);
function setNode ($id, $parent, $value){
$parent = $parent?$parent:0;
$this->data[$id] = $value;//»ñÈ¡µ±Ç°ID¶ÔÓ¦µÄµ±Ç°Ä¿Â¼Ãû
$this->cateArray[$id] = $parent;//»ñÈ¡µ±Ç°ID¶ÔÓ¦µÄ¸¸·ÖÀàID
//echo $id."->".$this->cateArray[$id]."--".$this->data[$id]."<br>";
}
function getChilds($id=0)
{
$childArray=array();
$childs=$this->getChild($id);
foreach ($childs as $child)
{
$childArray[]=$child;
$childArray=array_merge($childArray,$this->getChilds($child));//id µÝ¹é ÀÛ¼Ó
}
return $childArray;
}
function getChild($id)
{
&nbs
Ïà¹ØÎĵµ£º
Ò».»·¾³µÄ°²×°
ÏÂÔØ°²×°°ü£¬GoogleÉÏËÑË÷php+apache+sqlµÄ°²×°°ü²¢°²×°¡£
¶þ.À©Õ¹±à³Ì
Õë¶ÔÔÚPHP»·¾³ÏµôÓÃC±à³Ì(c³ÌÐò±àÒëµÄdll)£¬Ö÷ÒªÓÐÒÔÏÂÁ½ÖÖ·½Ê½¡£
1.ÀûÓÃATL¹¹½¨DLL×é¼þ£¬È»ºóÔÙPHPÀïÃæÖ±½Óµ÷Ó㬵÷Ó÷½·¨ ......
ͨ³£ÈËÃÇд³ÌÐòʱ¶¼Êǽ«ÎÄ×ÖдËÀÔÚ³ÌÐòÀïµÄ£¬±ÈÈ磺echo "Hello
World!";
£¬¼ÙÈçÒª¸Ä³ÉËü¹úÓïÑÔ£¬Ð´¹ú¼Ê»¯³ÌÐò£¬¾ÍÒªÖð¸ö´ò¿ª½øÐÐÐ޸쬳ÌÐò½Ï¶Ìʱ»¹ÐУ¬Èô³ÌÐòÓÐÉÏÍòÉõÖÁ¸ü¶à£¬¸ÄÆðÀ´¾Í²»ÊÇÄÇôÈÝÒ×ÁË¡£½üÀ´Ëæ×Åi18nµÄÖð½¥±ê
×¼»¯£¬ÎÒÒ²À´½²Ò»½²ÔÚPHPÖÐÈçºÎʵÏÖ¹ú¼Ê»¯Ö§³Ö¡£¸úÆäËû³ÌÐòÓïÑÔÒ»Ñù£¬ÔÚ PHP Ò²¿ ......
class runtime
{
var $StartTime = 0;
var $StopTime = 0;
function get_microtime()
{
list($usec, $sec) = explode(' ', microtime());
return ((float)$usec + (float)$sec);
}
function start()
{
$this->StartTime = $this->ge ......
×î½üŪphp£¬·¢ÏÖÏÂÔØµÄphpEclipse²»Äܵ÷ÊÔ£¬×òÌì¾ÍÓÃÁËÒ»¸öÏÂÎçµÄʱ¼ä´î½¨ÁËphpµÄµ÷ÊÔ»·¾³¡£·¢ÏÖÍøÉϵĹØÓÚphpµ÷ÊÔµÄÎÄÕÂÈÃÈËÓеãÂÒ£¬¾ÍÕûÀíÏÂд³ÉÕâÆªÎÄÕ£¬Ï£Íû¶Ô´ó¼ÒÓÐЩ°ïÖú¡£
ÔÚÍøÉϲéºÃÏñÊÇÓÐÁ½ÖÖµ÷ÊԵŤ¾ß£ºXdebugºÍZend Debugger£¬ÎÒÏÖÔÚÓõÄÊÇXdebug¡£ÎÒÖ÷Òª¾Í˵˵xampp£¬Eclipse£¬pdt£¬xdebug¹¹½¨phpµÄµ÷ÊÔ»· ......
1. Joomla!
2007Ä꿪ԴcmsµÚÒ»Ãû!Joomla!ÊÇʹÓÃPHPÓïÑÔ¼ÓÉÏMySQLÊý¾Ý¿âËù¿ª·¢µÄÈí¼þϵͳ£¬¿ÉÒÔÔÚ Linux¡¢Windows¡¢MacOSXµÈ¸÷ÖÖ²»Í¬µÄƽ̨ÉÏÖ´ÐС£²Ù×÷½Ó¿Ú³ýÁËÃÀ¹ÛÖ®Í⣬Ҳ»¨Á˺ܶàÐÄÁ¦ÔÚÉè¼ÆÕâЩ½Ó¿ÚµÄ¼òÒײÙ×÷ÐÔ¡£µ«³õ´ÎʹÓÃÕߣ¬Ðè ......