homepage fehler

08/02/2010 18:01 (=R.a.d.n.a.y=)#1
ich ahbe mal eine frage überall auf meiner homepage steht immer dieser text

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\xampp\htdocs\mods\counter.php on line 21



aber bei online die zahl ist immer unterschiedlich
08/02/2010 18:20 1999-Eagle#2
Quote:
Originally Posted by Radnay View Post
ich ahbe mal eine frage überall auf meiner homepage steht immer dieser text

Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '2.0/DST' instead in C:\xampp\htdocs\mods\counter.php on line 21



aber bei online die zahl ist immer unterschiedlich
Schau mal on line 21 =)!
Hast ein Fehler gemacht.
08/02/2010 18:43 (=R.a.d.n.a.y=)#3
wo schau ich da bei mir in counter stehet das das check ich nicht hab da auch nichts verändert und was verändern weis net was ??


<?php
/* ********************************************
Counter Funktion via PHP
---------------------------------------------
by [Sn1ff3r] für php-einfach.de , Oktober 2009
---------------------------------------------
Das Skript darf frei genutzt werden, jedoch
darf weder dieser Kasten entfernt noch ein
eigenes Copyright o.Ä. eingefügt werden!
---------------------------------------------
******************************************** */

$verbindung = mysql_select_db("account")or die("<b>Error:</b><br>".mysql_error()."");

/* *******************************************
* AB HIER KEINE ÄNDERUNGEN MEHR VORNEHMEN *
******************************************* */

$ip = $_SERVER["REMOTE_ADDR"];

$time_h = date("d.m.Y", time());
$time_g = date("d.m.Y", time()-86400);

$sql = mysql_query("SELECT * FROM counter ORDER BY ip DESC");

$row = mysql_fetch_object($sql);

if($ip == $row->ip)
{
$timestamp = date("d.m.Y", $row->time);

if($time_h == $timestamp)
{
}
else
{
$einfuegen = mysql_query("INSERT INTO counter SET ip='$ip', time='".date("d.m.Y", time())."'");
}
}
else
{
$einfuegen = mysql_query("INSERT INTO counter SET ip='$ip', time='".date("d.m.Y", time())."'");
}

$today = mysql_query("SELECT * FROM counter WHERE time = '".$time_h."' ORDER BY ip DESC");
$yesterday = mysql_query("SELECT * FROM counter WHERE time = '".$time_g."' ORDER BY ip DESC");
$gesamt = mysql_query("SELECT * FROM counter");
?>
<img src="styles/<?=$style;?>/images/index_43.jpg"></img>
<center>
<?php
echo "Besucher<br>";
echo "Heute: ";
echo mysql_num_rows($today)."<br>";
echo "Gestern: ";
echo mysql_num_rows($yesterday)."<br>";
echo "Gesamt: ";
echo mysql_num_rows($gesamt)."<br>";

?>
</center>