sasanrose / phpredmin

Yet another web interface for Redis
BSD 3-Clause "New" or "Revised" License
404 stars 96 forks source link

Failed inclusions when run via cmdline #74

Open drAlberT opened 8 years ago

drAlberT commented 8 years ago

php /full/path/to/index.php cron/index fails as the app relies on being executed in the "public dir"

Even if not strictly necessary (a cd could solve) I suggest to use only fully qualified paths in the scripts in order to have a more portable behavior ..

just define a BASE_DIR (using __DIR__) constant and refer to it every time including or requiring files

my 2 cents