PDA

View Full Version : header already been send...


Dondxon
07-24-2012, 09:57 PM
hey!

im using a login session on my page which is not on the forums. and to do that i have to require this:

<?php
chdir('./vb');
require_once('./global.php');?>

but if i do that it Unable to add cookies, header already sent on line 2. because i always put that code on top of the page.

where do i have to put that code to prevent that message?

if you can help i would really appreciate it. a whole community is waiting for it!

Dondxon.

ForceHSS
07-24-2012, 10:52 PM
Do you mean you have some kind of custom login

Dondxon
07-24-2012, 11:01 PM
Yea. They can fill in theire username and pass in on a form that sends the details to the forums and make them login.

kh99
07-24-2012, 11:27 PM
Unless it's just a typo in your post, you have a space before the <?php on the first line. If you remove it it may fix the problem.

Dondxon
07-25-2012, 07:34 AM
Every time i put that code anywere in my page it gives the error. and i miss copyd it i dont use it with a space.