A full PHP-written tree directory structure _php tutorial

Source: Internet
Author: User
The tree directory looks novel and chic, and the internet is mostly JavaScript and PHP combination, I this one is used PHP4 write, with the session function, please read more comments. (I passed the test under WIN98/PWS/PHP4)
2001/02/23
Zhanghexun
Tree Catalog
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 ', ' Beida founder '); Office Star Project
$pho =array (' Photoshop ', ' 3D MAX ', ' fish ', ' firworks ');
$web =array (' php ', ' asp ', ' JSP ', ' html ', ' JavaScript ', ' Perl ');
?>
<title>Zhang Hexing's Tree-type catalogue</title>












"; 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]
";

http://www.bkjia.com/PHPjc/445199.html www.bkjia.com true http://www.bkjia.com/PHPjc/445199.html techarticle The Tree directory looks novel and chic, and the internet is mostly JavaScript and PHP combination, I this one is used PHP4 write, with the session function, please read more comments. (This ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.