Read own Filename

Find and share HowTos to various installations / configurations!
2 posts • Page 1 of 1
eMTy
Posts:22
Joined: Wed Aug 17, 2011 3:33 pm

Read own Filename

Post by eMTy »

Hi guys,

is there a possibility to read my own filename in a script?
I mean, can I write a functions that uses the filename or
filepath of the scriptfile from which it's executed? :)

Greets
Michel

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: Read own Filename

Post by mkoller »

Maybe you can use the __FILE__ constant which gives you the relative path to the sccript.

2 posts • Page 1 of 1