I've a file called demo.php where I don't have any GET variables in the URL, so if I want to hide a button if am on this page I can't use something like this:
if($_GET['name'] == 'value') {
//Hide
} else {
//show
}
So I want something like
$filename = //get file name
if($filename == 'file_name.php') {
//Hide
} else {
//show
}
I don't want to declare unnecessary GET variables just for doing this.How to do that?