Home  >  Article  >  Backend Development  >  A tree directory structure written entirely in PHP_PHP tutorial

A tree directory structure written entirely in PHP_PHP tutorial

WBOY
WBOYOriginal
2016-07-20 11:04:26770browse

The tree directory looks novel and unique, but most of the ones on the Internet are a combination of JAVASCRIPT and PHP. This one is written entirely in PHP4 and uses the SESSION function. Please give me your comments after reading it. (I passed the test under WIN98/PWS/PHP4)
// 2001/02/23
//ZHANGHEXUN
//Tree directory
session_start(); / /Start a SESSION
if (!session_is_registered("$office_action")){
$office_action=0;
session_register("$office_action");//Register a SESSION
}
if(!session_is_registered("$pho_action")){
$pho_action=0;
session_register("$pho_action");
}
if (!session_is_registered("$web_action")){
$web_action=0;
session_register("$web_action");
}
$office=array('wps','office2000','Peking University Founder'); //Office Star Project
$pho=array('photoshop','3D MAX','fish','Firworks');
$web=array('php','asp','jsp','html' ,'javascript','perl');
?>
Zhang Hexun's tree directory








";
for ($i =0;$iprint"";
}
print"
Learning Center
·if ($ acte==1000){
$office_action= 1-$office_action;
}
print ""$php_self?acte=1000&office_action=$office_action"";
?>>Office Star


print"
   |-$office[$i]
";

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/445199.htmlTechArticleThe tree directory looks novel and unique, and most of the ones on the Internet are a combination of JAVASCRIPT and PHP. I use this one It is all written in PHP4 and uses the SESSION function. Please give me your comments after reading it. (This...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn