include bug
Posted by: hamid (85.9.74.---)
Date: February 08, 2007 09:20PM

when i use include in my code it return one empty line and i can't use setcookie or other headers in my code
please help me
i installed vb but it return below error:

Unable to add cookies, header already sent.
File: C:\wamp\www\vBulletin\vb36\includes\config.php
Line: 1

Options: ReplyQuote
Re: include bug
Posted by: roms (---.fbx.proxad.net)
Date: February 08, 2007 09:56PM

Setcookie() must be used before sending any character to the ouput (even a space or a new line. This means it must be used before any html code or echo. Make sure also that you don't have any spaces before you <?php



Romain

Options: ReplyQuote
Re: include bug
Posted by: hamid (85.9.74.---)
Date: February 09, 2007 08:23AM

hey come on!
i knew it
my code is below:
<?PHP
include "emptyfile.php";
setcookie(......);
?>

but it returns error of output before setcookie, why?
emptyfile.php is like as : <??>

Options: ReplyQuote
Re: include bug
Posted by: roms (---.w193-251.abo.wanadoo.fr)
Date: February 09, 2007 09:42AM

Then have a look at the source code of your page in your browser and you'll see exactly what is going wrong.



Romain

Options: ReplyQuote
Re: include bug
Posted by: CyberSpatium (71.237.217.---)
Date: February 09, 2007 11:09AM

have you edited your vb script at all? if you are trying to install a hack you might want to post this question in the topic for what ever hack you are trying to install.

you can try output buffering since it allows you to control what is outputted to your script. people use output buffering when they need to output text to the browser before sending setcookie() and/or header() functions.

[www.php.net]


CyberSpatium
WAMP English Forum Admin
--------------------------------------

like my free support? help support me by checking out my new Newbie Webmaster Development Forum dedicated to the newbie webmaster here:
www.WebDevNewbie.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.