if url statement
<pre><code>&lt;?php
$error = 'error';
$check = $_SERVER['REQUEST_URI'];
if($check == "/bleachers.php") 
{
    echo 'bleachers';
} 
elseif($check == 'runners.php') 
{ 
    echo 'runners'; 
}
else
{ 
    echo $error;
}
?&gt;
</code></pre>

<p>I'm trying to figure out why this is not working. I am trying to echo out a text based on the url of a website. If the url is site.com/bleachers.php echo bleachers
elseif site.com/runners.php echo runners else echo error. </p>

<p>I type in the url <code>site.com/bleachers</code> and error prints out instead.</p>
