Can someone please help me with these 4 lines of code. I been trying to read how to fix this error but I'm not very familiar with php that much yet.
$currentFile = $_SERVER["SCRIPT_NAME"];
$img = array_pop(explode("/", $currentFile));
$fileName = basename($img, ".php").PHP_EOL;
echo $fileName;
This script finds the current $.php name and spits it out. It also cuts the location of the file and the extension as well... leaving just the fileName.
How would I write these 4 lines of code to not throw that Strict Standard error