Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
You can use pathinfo($_SERVER['SCRIPT_URI']); and/or parse_url($_SERVER['SCRIPT_URI']); to dump all the file info to an array and then pick and choose the elements you want.