vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   header already been send... (https://vborg.vbsupport.ru/showthread.php?t=285921)

Dondxon 07-24-2012 09:57 PM

header already been send...
 
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 Code:

 <?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.


All times are GMT. The time now is 10:01 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01054 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete