I have 3 files. a.php, b.php, and c.php. In each file I have require 'lol.php'. In lol.php I want to create a variable with the filename (either a.php, b.php, or c.php, not lol.php). Would I use $_SERVER['PHP_SELF'] or $_SERVER['SCRIPT_NAME'] or what? Or is there no predefined way variable for this?
+rep to those who help.





Reply With Quote


