That's the error I get when I go to my website. I checked all the usual solution like blank spaces and using output buffer all to no avail. The exact line is Warning: Cannot modify header information - headers already sent by (output started at /home/valandil/public_html/domination.php:1) in /home/valandil/public_html/sta/topper.php on line 342 Code (markup): The first line of domination.php is and that's before the <HTML> tag. <?php $id=2; include("/home/valandil/public_html/sta/topper.php");?> Code (markup): Since line 342 is the error, I''ll post line 330 to 346 of topper.php $spath=$_SERVER['SERVER_NAME']; if (substr($_SERVER['SERVER_NAME'], 0,4) == "www.") { $spath = substr($_SERVER['SERVER_NAME'], 4); } $string = serialize($visitor_array); if($iscomplexserver) { setcookie("vacookie",$string,time()+3600*24*365,"/"); } else { setcookie("vacookie",$string,time()+3600*24*365,"/", $spath); } } Code (markup): Anyone can help me? I searched google, I searched this forum and nothing. Thanks a lot.
Did the script send information to the browser with echo or a space or something. Cookies can only be set when there is no content send to the browser
I'll try to explain as best as I could. Domination.php is my webpage and I'm asked to insert that first line into it by the readme file. topper.php comes from the developer and shouldn't be edited. The script you are talking about... is it topper.php? If so, then no. It doesn't appear to contain any HTML... all php codes.
Is the a space before the first <? in your document? or some HTML codes? Can you give more detaild info (script) like the page you are loading and giving the error (first 4 lines will be fine)
The first 4 lines of domination.php is <?php $id=2; include("/home/valandil/public_html/sta/topper.php");?> <html> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"> Code (markup): while the first 4 lines of topper.php is <?php //----------------------- Windows Server Snippet ------------------- foreach ($_GET as $var => $value) { Code (markup): There is no space whatsoever before <?. And just in case you need the website, it's salescopyquickfix.com/domination.php Thanks for the help by the way.
That's realy weird my friend... coz the error states that the is some send data to the browser.. Did you write the script your selve? for more help please PM i cannot keep track of all topics
Hi powerextreme, I already posted the code in my first post. you can go to domination.php at salescopyquickfix.com/domination.php