I have noticed that sometimes I can invoke a php script like this:
Code:
linux_prompt# php -q my_script.php
but other times I must type in the full path to the php executable like this:
Code:
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.