You are probably having issues with the current directory. Make sure to switch to the forum home directory before calling any includes.
PS What is the reason you are trying to run this from a cronjob, i assume you are talking about the operating system CRON and not the scheduled tasks inside vBulletin?
PPS What is the reason you want to run this at a regular interval anyway? Rebuilding information should only be ran if instructed. There is no reason to run it more often.
|