I have noticed that sometimes I can invoke a php script like this:
linux_prompt# php -q my_script.php
but other times I must type in the full path to the php executable like this:
linux_prompt# /usr/bin/php5 my_script.php
Why is that? I'm guessing there's an alias somewhere. Is it in my bash profile? Is it possible to create one alias that applies to *all* users of a linux box? Also, is it safe to use the path /usr/bin/php every time or will that path vary by linux distribution or php install?
Any help would be very much appreciated.