I think I may have to use explode for this but not sure how I would do it for this code as it is:
$_SERVER["SCRIPT_NAME"]
The result I get is /oct.html
I just want the result to be "oct"
Would appreciate if you could help me on this one!
$file = basename($_SERVER['SCRIPT_NAME'],'.html');