I am trying to write an extension for php using swig. I need to know the absolute path of the current php file in my incremental code. I used __ FILE __ in my C code, but it returns the current file name c.
char *file_name = zend_get_executed_filename();
You can use the realpath () function. Specify the name of the current file.
hint: man 3 realpath or http://www.freebsd.org/cgi/man.cgi?query=realpath&sektion=3
Source: https://habr.com/ru/post/1536324/More articles:mupdf export and android studio 0.5.4 - androidProvide PyCharm warning to reload files when they change externally - pycharmhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1536321/access-to-details-of-each-item-in-groupby&usg=ALkJrhiVM6_lK5VMFjR5D6glhvvbyExwiQFreqDist in NLTK does not sort output - pythonError? When debugging with Pycharm - pythonGA API - channel collection reports - google-api@Repeat Form Assistant with Complex Object - Play Framework - javaAn SKShapeNode frame contains a point (0, 0), even if CGPath is not - iosUIView animation not working - iosInitializing defaultdict vs dict element - pythonAll Articles