I would like to access to a file located in the same folder as the exe file. The purpose of the cli-application is to read and convert text files.
I tried to use several possibilities, also mentioned in the documentation:
- use of DOCUMENT_ROOT path
- read the path of the exe file -> dirname of PHP_SELF
- absolute definition of the path
I cannot access to the placed files within the folder of the exe. These text files will change regularly, so they cannot be packed within the application.