The above buffer solution is a hack. Do not do this.
First, you really better use the env command to determine which php is used:
Then give it permission to do it yourself:
chmod +x myfile
So instead of calling 'php myfile', you now simply run:
./myfile
From this folder. Hope this helps!
delboy1978uk
source share