Relative path in cron jobs php
Relative paths in cron jobs like:
may not work in cron jobs.
Because the working directory of the cron may be different from your running file.
But it is time consuming to change every relative path to absolute right
Changing the working directory of the file helps
Use the following line before your code to do that