I have these urls
something2/something3/fileName.php
something2/something3/fileName.php?para=someting¶m2=something2
I want to get the fileName without the .php extension and without the paramets,
note: not all the urls have parameters.
What I have tried:
$phpFileName = basename($_SERVER['REQUEST_URI'], ".php");//without .php extension
that works only when there are no parameters in the urls, but when there are parameters in the url, i got like this:
fileName.php?parm=something¶m=something
how can I remove these parameters please and get just the fileName ?
thanks
["filename"]