I want to know the path of the php interpreter from within a php script.
Such the result will be /usr/bin/php for example
I want this to work both for windows and unix.
How can I do it?
edit: I need this information in runtime, so parsing the result of phpinfo() is less than ideal solution