I am trying to create a php executable (a phar file) for generating some files, and I would like to know how to get the real path of the phar file (within the phar file code).
What I want to do is to create a folder in the same level of the phar file and create the new files there, but realpath(__DIR__.'/../')
does not seem to work.
Thanks