Let’s say I want to run some of my commands by cron (I believe that’s what they were made for).
If I stay in my application root directory, where my index_console.php resides, it works fine. I issue
php5 index_console.php CountRatio
But when I try doing that from different directory, there are some problems.
if I issue
php5 /var/path/to/app/index_console.php CountRatio
it seems like php script runs ok, but no parameters is processed.
php5 '/var/path/to/app/index_console.php' CountRatio
does the same.
What am I doing wrong?