CodeIgniter Forums
Header errors - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Header errors (/showthread.php?tid=53282)



Header errors - El Forum - 07-17-2012

[eluser]_Smilie_[/eluser]
Hi guys,
Been working on integrating vbulletin into CI.
This however required me to modify the index.php file:
Code:
$dir = getcwd();

chdir('path/to/your/vb/installation/');
require './global.php';

chdir($dir);
At the very top.
I knew this wasn't good, but I didn't run into troubles, so I kept it till now.
Due that I have putted this in my index.php it's included globally, and as the very first thing, however this causes some horrible header errors, which I have solved by making a standard meta redirect (yea.. just wanted a working copy for a start....).

The time came where I had a need of sessions, and well, this seems to cause header bugs, and I badly need that shopping cart, don't want to slack any longer.

My question for you guys: Can you recommend another way of doing this?