Click to See Complete Forum and Search --> : Cannot modify header information
bash
December 10th, 2004, 12:55 PM
Hello, I have a problem i got some errors on my website ( http://league.intercomnetworks.net/ ) but I don't got them on ( http://www.bash-x.net/league/ ) And it is the same code!!
What's strange is the error output started at /home/league/public_html/script/include.php:22 because i only define variables in include.php and don't output anything.
both phpinfos are available on http://league.intercomnetworks.net/php.php and http://www.bash-x.net/php.php .
Can you help please?
Thanks for your time
khp
December 10th, 2004, 02:20 PM
output started at /home/league/public_html/script/include.php:22
Chances are PHP is not kidding about this. I would suspect that you are calling some function, or doing something strange which does produce some output. My best suggestion would be to fix the problem.
The alternative would be to reinstall the one that doesn't work to exactly replicate the one that works. To be cirtain this would work, you would of course have to clone the machine that works. The problem might be anything, in your server settings.
visualAd
December 10th, 2004, 05:40 PM
Have a look at your include.php. I have examined closely both the server configurations and nothing obvious is jumping out. The error says that output was started on line 22 of include.php, so have a look at the line in your script. What I am noticing is that there is a lot of whitespace on the broken site before the first error message, so something is generating that whitespace.
If at all possible, post the include.php file here, or send it to me in a PM and I'll take a quick look.
bash
December 10th, 2004, 09:53 PM
Hello, thanks for your help
My include.php doesn't even have 22 lines :|
<?
$db_host = "localhost";
$db_username = "aa";
$db_pw = "bb";
$db_name = "league";
$phpbb_db_name = "phpbb";
$phpbb_user_table = "phpbb_users";
$phpbb_user_group_table = "phpbb_user_group";
$phpbb_root_path = '../forums/';
$path = $_SERVER['SCRIPT_FILENAME'];
$pos = strrpos($path, '/');
$path = substr($path,0,$pos);
?>
visualAd
December 11th, 2004, 05:24 AM
This is a long shot, but the server configuration is saying that you have the asp_tags off. This means that PHP will only parse code in <?php ?> tags and ignore the rest. What the web server is doing wit h it is a mistery though, becuase technically that code should just get dumped in the browser. Let me know if changing the tags works. :wave:
I would also check to ensure there is not white space before or after the PHP tags.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.