Posted By

ryarwood on 01/30/12


Tagged

header check navigation detection nav


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

andrey


Page Detection for Dynamic Navigation


 / Published in: PHP
 

  1. <?php $loc = $_SERVER['REQUEST_URI']; ?>
  2.  
  3. <?php $pos = strpos($loc, "/music-videos/"); if ($pos === false) { echo ""; } else { echo "_over"; } ?>

Report this snippet  

You need to login to post a comment.