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 374,616 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 2,268 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: Nov 2007
Location: Arkansas
Posts: 250
Reputation: buddylee17 is on a distinguished road 
Rep Power: 1
Solved Threads: 45
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Whiz in Training

Re: $_server['script_name']

  #6  
May 10th, 2008
Okay, that means that $_SERVER['SCRIPT_NAME'] equals index.php. Therefore, compare the current page($_SERVER['SCRIPT_NAME']) to index.php:
  1. <?php
  2. if($_SERVER['SCRIPT_NAME'] == 'index.php')
  3. {
  4. $style_home = 'style="background-color: #6C674F"';
  5. }
  6. ?>
Reply With Quote  
All times are GMT -4. The time now is 8:58 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC