İşinizi görür.
 $sayfa = $_SERVER['PHP_SELF']; 
 if ( $sayfa == 'index' ){
echo "çalış";
}else{
echo "çalışma";
}