Multi-language script header problem
Posted: Thu Apr 22, 2010 10:06 am
Hi,
I am having a major problem with my php coding.
My site is http://www.mashamoto-imports.com/index.php and I'm trying to implement a multi language script.
The script can be found and is explained here: http://www.bitrepository.com/php-how-to ... bsite.html
Problem is that I get a "headers already sent error", caused by the setcookie and session_start(); function. I have tried everything by moving these functions to make sure they come first on the page. There's no whitespace before the functions and I'm left wondering why it doesn't work.
Weird thing is that the script works perfectly on other pages. I copied the code from index.php and created http://www.mashamoto-imports.com/index2.php Exactly the same scripting used as on index.php!! Why does it work here and not on on the normal index.php?
The script is also installed on http://www.mashamoto-imports.com/cars-for-sale.php Here it also works fine and the setcookie also works as you can see.
I really hope someone can help me out as I need to get this to work asap.
I am having a major problem with my php coding.
My site is http://www.mashamoto-imports.com/index.php and I'm trying to implement a multi language script.
The script can be found and is explained here: http://www.bitrepository.com/php-how-to ... bsite.html
Problem is that I get a "headers already sent error", caused by the setcookie and session_start(); function. I have tried everything by moving these functions to make sure they come first on the page. There's no whitespace before the functions and I'm left wondering why it doesn't work.
Weird thing is that the script works perfectly on other pages. I copied the code from index.php and created http://www.mashamoto-imports.com/index2.php Exactly the same scripting used as on index.php!! Why does it work here and not on on the normal index.php?
The script is also installed on http://www.mashamoto-imports.com/cars-for-sale.php Here it also works fine and the setcookie also works as you can see.
I really hope someone can help me out as I need to get this to work asap.