Please I need some help!
When I am developing, these code below works fine:
<?php
if($_SERVER['SCRIPT_NAME'] == '/aktuelle seite/index.php')
{
$style_home = 'style="background-color: #6C674F"';
}
?>
<ul>
<li class="linkLevel01"><a href="index.php" class="homy"<?php echo $style_home ?>>Home</a></li>
But, when I put on the server :
<?php
if($_SERVER['SCRIPT_NAME'] == '/bobo/index.php')
//"bobo" is the name of the folder on my server]
{
$style_home = 'style="background-color: #6C674F"';
}
?>
<ul>
<li class="linkLevel01"><a href="index.php" class="homy"<?php echo $style_home ?>>Home</a></li>
It won't work.
Please help me out.
Best regards
Max