Oh I see ... KiXScripts Editor ...

Well, that makes my points not less true (dismissing $exedir )
Still the others are valid and will cause users to complain to you.
Look, I am only a moderator here, and as this forum is open (not moderated) I try to help you
with giving tips to make your udf bullet proof and 'blackboxed' ...

It's your decision.


More hints here (esp. points 8 and 9)
_________________________