divinedesigns1 Posted November 12, 2013 Share Posted November 12, 2013 i was wondering how i can go about shortening the output of script_name, i keep getting the folder and the file name but i am just looking for the file name only. is there a way around this? Link to comment Share on other sites More sharing options...
thescientist Posted November 12, 2013 Share Posted November 12, 2013 it depends. is it the filename of the current script? either way, it should be a relatively simple google search, but you may want to look into basename and the $_SERVER array. Link to comment Share on other sites More sharing options...
Ingolme Posted November 12, 2013 Share Posted November 12, 2013 You can use basename() to get the filename out of the path. Link to comment Share on other sites More sharing options...
divinedesigns1 Posted November 12, 2013 Author Share Posted November 12, 2013 it depends. is it the filename of the current script? either way, it should be a relatively simple google search, but you may want to look into basename and the $_SERVER array. You can use basename() to get the filename out of the path. yeah i used basename and it worked perfectly now my active state is working awwsomeeeeee so happy over here.........thanks guys Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now