Hi there, I'm writing a class and I need to know where is the php binary, but when I use this:
exec('which php')
from inside of my php file, it give me a different output(wrong) that when I use the same command in the shell
I'm using MAMP and the path I want (that used by the shell) is:
/Applications/MAMP/bin/php5/bin
but my class is trying to use /usr/bin instead
thanks to all