User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 363,800 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,588 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting

$_server['script_name']

Join Date: Apr 2008
Posts: 9
Reputation: phploveisgood is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
phploveisgood phploveisgood is offline Offline
Newbie Poster

Re: $_server['script_name']

  #3  
May 9th, 2008
Excuse me! I don't realy understand what you mean. These are my code:

  1. <?php
  2. if($_SERVER['SCRIPT_NAME'] == '/bobo/index.php')
  3. {
  4. $style_home = 'style="background-color: #6C674F"';
  5. }
  6. ?>
  7. <ul>
  8.  
  9.  
  10. <li class="linkLevel01"><a href="index.php" class="homy"<?php echo $style_home ?>>Home</a></li>

What would you have done to make it work.
Last edited by peter_budo : May 11th, 2008 at 1:03 pm. Reason: Keep It Organized - please use [code] tags
Reply With Quote  
All times are GMT -4. The time now is 11:14 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC