Vbulletin/Rssposter.php Need it to run without Cronimage,
Hiya
I've been at this for days, posting on vbulletin.org & vbulletin.com trying to get a resolution, but theres no joy.
Heres what I'm after
On vbulletin, I have a rssposter which pulls rss feeds and automatically posts them as a thread. This is brilliant but it only runs the task when a user enters the forum and triggers the cronimage file. I want it to run without the need of a user to trigger it. I would like it to run say every 30min indefinite.
So i've set up a cron job on my server, to run this cron file, which runs the rssposter, but it still doesn't work. I don't know whether its the cron coding, or my server messing things up. Heres the code:
// browser will think there is no more data if content-length is what is returned // regardless of how long the script continues to execute, apart from IIS + CGI
header('Content-type: image/gif');
if (!(strpos($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') !== false AND strpos(SAPI_NAME, 'cgi') !== false)) { header('Content-Length: ' . $filesize); header('Connection: Close'); }
if (!$vbulletin->options['crontab']) { echo $filedata; flush(); }
If anyone could help me out, i would much appreciate it. Or if anyone else could give me a solution to the task I want to create. I would be most greatful
Thanks for reading
Lukescotty
Last edited by PeejAvery; April 23rd, 2012 at 02:06 PM.
Reason: Added PHP tags
Bookmarks