leonidassavvides
04-05-2009, 01:21 PM
setcookie("countNumVisitor", $countNumVisitor, time()+60*60*24*365*3,"/");
or
if (isset($_COOKIE['countNumVisitor'])) {
$countNumVisitor=$_COOKIE['countNumVisitor'];
These statements(all ?) must appear prior any output ? and second one ?
well I get following error
Warning: Cannot modify header information - headers already sent by (output started at /home/content/p/o/l/polisch123/html/dbinfo.php:22) in /home/content/p/o/l/polisch123/html/indexaffv.php on line 150
the line 150 is
setcookie("countNumVisitor", $countNumVisitor, time()+60*60*24*365*3,"/");
well in dbinfo.php I do NOT INLUDE any output , where is the error ????
may include files prior setcookie(); ???
<?
$username="";
$password="";
$database="";
$hostname="";
$NewslettersTable="newslettersemails";
$PricesTable="prices42b"; // prices4 prices42
$CarsTable="cars22"; //cars1 cars2
$CustomersTable="customers2"; // customers customers2
$CanceledCustomersTable="canceledcustomers3";
$BookingsTable="bookings2bigint3"; // bookings2
$AffiliatesTable="affiliates";
$notifyAff="naff";
$mobilesite="mobileWebsite";
$eujspsite="eujspWebsite";
$customer_bookings_both="customer_bookings_both2";
$ACancelTable="affCancelCustomers";
$ATable="affCustomers" ;
$AEarningsTable="affEarnings" ;
$AVisitorsTable="affVisitorsNew2" ;
$affEarningsView="affEarningsJoinCustomerBookingsView" ;
?>
or
if (isset($_COOKIE['countNumVisitor'])) {
$countNumVisitor=$_COOKIE['countNumVisitor'];
These statements(all ?) must appear prior any output ? and second one ?
well I get following error
Warning: Cannot modify header information - headers already sent by (output started at /home/content/p/o/l/polisch123/html/dbinfo.php:22) in /home/content/p/o/l/polisch123/html/indexaffv.php on line 150
the line 150 is
setcookie("countNumVisitor", $countNumVisitor, time()+60*60*24*365*3,"/");
well in dbinfo.php I do NOT INLUDE any output , where is the error ????
may include files prior setcookie(); ???
<?
$username="";
$password="";
$database="";
$hostname="";
$NewslettersTable="newslettersemails";
$PricesTable="prices42b"; // prices4 prices42
$CarsTable="cars22"; //cars1 cars2
$CustomersTable="customers2"; // customers customers2
$CanceledCustomersTable="canceledcustomers3";
$BookingsTable="bookings2bigint3"; // bookings2
$AffiliatesTable="affiliates";
$notifyAff="naff";
$mobilesite="mobileWebsite";
$eujspsite="eujspWebsite";
$customer_bookings_both="customer_bookings_both2";
$ACancelTable="affCancelCustomers";
$ATable="affCustomers" ;
$AEarningsTable="affEarnings" ;
$AVisitorsTable="affVisitorsNew2" ;
$affEarningsView="affEarningsJoinCustomerBookingsView" ;
?>