Possible duplicate:
Get current script name
I have a file called demo.php where I don't have GET variables in the url, so if I want to hide the button, if on this page I cannot 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 this ...
php
Random Guy Oct 23 2018-12-12T00: 00Z
source share