I am testing an application in MAMP and would like to add a cron job, or as I am on a mac the job through is run through launchctl
. My cron is a php file that runs a database query. Naturally the php file and mysql db are in separate directories. Where should I change my working directory to such that the cron will query the database? FYI, I have a standard installation /Applications/MAMP/...
Many thanks.