NOTE: I just posted this in the wrong forum. Sorry. :hurt:
I have a script that I want to run as a cron job and that needs to be vBulletin enabled. This scriptwill be ran by my server's cron system and the not the built in vBulletin cron system.
I'm running into a problem whenever I try to include "global.h", like below:
PHP Code:
<?php
require_once('./global.php');
echo "Hello World";
?>
I'm getting HTML output, which contains the following error:
Unable to add cookies, header already sent
I'm guessing that something in global.php is expecting a browser. Is there anyway to include the vBulletin framework in a console script?