cannot modify header information
Warning: Cannot modify header information - headers already sent by (output started at /home/escort/domains/onbekend/public_html/header.php:12) in /home/escort/domains/onbekend/public_html/affiliate.php on line 10
Warning: Cannot modify header information - headers already sent by (output started at /home/escort/domains/onbekend/public_html/header.php:12) in /home/escort/domains/onbekend/public_html/affiliate.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /home/escort/domains/onbekend/public_html/header.php:12) in /home/escort/domains/onbekend/public_html/affiliate.php on line 12
Warning: Cannot modify header information - headers already sent by (output started at /home/escort/domains/onbekend/public_html/header.php:12) in /home/escort/domains/onbekend/public_html/affiliate.php on line 13
Warning: Cannot modify header information - headers already sent by (output started at /home/escort/domains/onbekend/public_html/header.php:12) in /home/escort/domains/onbekend/public_html/affiliate.php on line 14
Dit is het affiliate script:
Warning: Cannot modify header information - headers already sent by (output started at /home/escort/domains/onbekend/public_html/header.php:12) in /home/escort/domains/onbekend/public_html/affiliate.php on line 11
Warning: Cannot modify header information - headers already sent by (output started at /home/escort/domains/onbekend/public_html/header.php:12) in /home/escort/domains/onbekend/public_html/affiliate.php on line 12
Warning: Cannot modify header information - headers already sent by (output started at /home/escort/domains/onbekend/public_html/header.php:12) in /home/escort/domains/onbekend/public_html/affiliate.php on line 13
Warning: Cannot modify header information - headers already sent by (output started at /home/escort/domains/onbekend/public_html/header.php:12) in /home/escort/domains/onbekend/public_html/affiliate.php on line 14
Dit is het affiliate script:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
if($_GET['ref'])
{
if($cookieExpiration != 0)
$cookieLifetime = time() + $cookieExpiration*86400;
else
$cookieLifetime = time() + 3650*86400;
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
session_start();
$_SESSION['ref'] = $_GET['ref'];
include "affconfig.php";
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 17)");
mysql_db_query($database, "INSERT INTO clickthroughs VALUES ('".$_GET['ref']."',
'$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$clienturl', '')");
}
?>
if($_GET['ref'])
{
if($cookieExpiration != 0)
$cookieLifetime = time() + $cookieExpiration*86400;
else
$cookieLifetime = time() + 3650*86400;
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
session_start();
$_SESSION['ref'] = $_GET['ref'];
include "affconfig.php";
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 17)");
mysql_db_query($database, "INSERT INTO clickthroughs VALUES ('".$_GET['ref']."',
'$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$clienturl', '')");
}
?>
Kijken eens in het bestand:
/home/escort/domains/onbekend/public_html/header.php
Op regel 12.
Daar wordt iets naar de browser verstuurd alleen kan dit niet voor de functie setcookie.
edit:
En ook ff een linkje naar de FAQ:
http://www.phphulp.nl/php/faq/#2
/home/escort/domains/onbekend/public_html/header.php
Op regel 12.
Daar wordt iets naar de browser verstuurd alleen kan dit niet voor de functie setcookie.
edit:
En ook ff een linkje naar de FAQ:
http://www.phphulp.nl/php/faq/#2
Gewijzigd op 01/01/1970 01:00:00 door Martijn B
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
session_start();
if($_GET['ref'])
{
if($cookieExpiration != 0)
$cookieLifetime = time() + $cookieExpiration*86400;
else
$cookieLifetime = time() + 3650*86400;
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
$_SESSION['ref'] = $_GET['ref'];
include "affconfig.php";
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 17)");
mysql_db_query($database, "INSERT INTO clickthroughs VALUES ('".$_GET['ref']."',
'$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$clienturl', '')");
}
?>
session_start();
if($_GET['ref'])
{
if($cookieExpiration != 0)
$cookieLifetime = time() + $cookieExpiration*86400;
else
$cookieLifetime = time() + 3650*86400;
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
SetCookie ("ref",$_GET['ref'], $cookieLifetime, $cookiePath, $cookieDomain);
$_SESSION['ref'] = $_GET['ref'];
include "affconfig.php";
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 17)");
mysql_db_query($database, "INSERT INTO clickthroughs VALUES ('".$_GET['ref']."',
'$clientdate', '$clienttime', '$clientbrowser', '$clientip', '$clienturl', '')");
}
?>
session_start(); moet je plaatsen voordat je coockies set..
Gewijzigd op 01/01/1970 01:00:00 door stijn
Dit is header.php daar begint session start heb session start weggehaald uit affiliate.php echter foutmelding bleef
// Hier staat nog een hele hoop html tussen
onderaan staat dit:
// Hier staat nog een hele hoop html tussen
onderaan staat dit:
Code (php)
1
2
3
4
5
6
2
3
4
5
6
<?php
require "mysqldb.php";
$sitepad = "/uploadimages/"; // voor afbeeldingen in site
$pad = "/home/onbekend/domains/onbekend/public_html/uploadimages/
"; // plaats afbeeldingen op server
?>
require "mysqldb.php";
$sitepad = "/uploadimages/"; // voor afbeeldingen in site
$pad = "/home/onbekend/domains/onbekend/public_html/uploadimages/
"; // plaats afbeeldingen op server
?>
Gewijzigd op 01/01/1970 01:00:00 door Lars Koning
Waar is regel 12 dan?
Dat is header.php zie boven daar begint session start heb session start weggehaald uit affiliate.php echter foutmelding bleef
jah inderdaad zie het al close it__________|
jah inderdaad zie het al close it__________|
Gewijzigd op 01/01/1970 01:00:00 door Lars Koning
Die hele hoop html heb je nu zeker weggehaald uit header.php of je hebt alle setcookie's daar boven gezet?




