萬盛學電腦網

 萬盛學電腦網 >> 網絡編程 >> php編程 >> PHP的欄目導航程序

PHP的欄目導航程序

   $d_label=array("service"=>"有償服務","teach"=>"家教中心","union"=>"校園服務聯盟","job"=>"學生兼職","free"=>"信息庫");

  $directory=$REQUEST_URI;

  while($directory!="/")

  {

  $d_text=basename($directory);

  if(isset($d_label[$d_text])){$d_text=$d_label[$d_text];}

  $d_link=$directory;

  $d_curx="->$d_text";

  $d_komplettx=$d_curx.$d_komplettx;

  $directory=dirname($directory);

  }

  echo "欄目導航:".$d_komplettx;

  ?>

copyright © 萬盛學電腦網 all rights reserved