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');
?>
Previous article:Regular expression to judge email and URL, please help me see if there is anything to add._PHP Tutorial
Next article:Why does my Mysql not support Chinese query_PHP tutorial
Statement of this Website
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
Latest Articles by Author
Latest Issues
Related Topics
More>
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
|