I have these types of urls
something1/anotherThing1/View/fileName.php
something2/anotherThing2/View/fileName2.php?variable1=value1&variable2=value2
...
I want to get the fileName
without the .php
I tried this
$_SERVER['REQUEST_URI']
but it seems it gives me the whole url.
Maybe I need a regualr expression.
Could you help me please. i am not good in PHP and i just need this small issue.
appreciate it