Jump to content

divinedesigns1

Recommended Posts

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...