Also ich habe einen User Online Rekord Counter!
Dieser funktioniert so ca. 2-3 Stunden super, dann kommt aber immer ne Fehlermeldung!
Aber immer so nach ca. 2-3 Stunden! vorher funzt alles super!!
Hier is der komplette aktuelle Quellcode der counter.php
Wenn der fehler da is, lad ich einfach die "counter_day.log" neu hoch und es funzt wieder ne gewisse Zeit... woran liegt das??
Bitte helft mir!!
Dieser funktioniert so ca. 2-3 Stunden super, dann kommt aber immer ne Fehlermeldung!
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 6
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/stats/public_html/text.php on line 7
Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 15
Warning: mysql_query(): A link to the server could not be established in /home/stats/public_html/text.php on line 15
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/stats/public_html/text.php on line 17
Warning: mysql_close(): no MySQL-Link resource supplied in /home/stats/public_html/text.php on line 50
Visits heute
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 6
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/stats/public_html/text.php on line 7
Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 15
Warning: mysql_query(): A link to the server could not be established in /home/stats/public_html/text.php on line 15
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/stats/public_html/text.php on line 17
Warning: mysql_close(): no MySQL-Link resource supplied in /home/stats/public_html/text.php on line 50
User Online
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 6
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/stats/public_html/text.php on line 7
Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 15
Warning: mysql_query(): A link to the server could not be established in /home/stats/public_html/text.php on line 15
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/stats/public_html/text.php on line 17
Warning: mysql_close(): no MySQL-Link resource supplied in /home/stats/public_html/text.php on line 50
Online Rekord
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 6
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/stats/public_html/text.php on line 7
Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 15
Warning: mysql_query(): A link to the server could not be established in /home/stats/public_html/text.php on line 15
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/stats/public_html/text.php on line 17
Warning: mysql_close(): no MySQL-Link resource supplied in /home/stats/public_html/text.php on line 50
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/stats/public_html/text.php on line 7
Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 15
Warning: mysql_query(): A link to the server could not be established in /home/stats/public_html/text.php on line 15
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/stats/public_html/text.php on line 17
Warning: mysql_close(): no MySQL-Link resource supplied in /home/stats/public_html/text.php on line 50
Visits heute
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 6
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/stats/public_html/text.php on line 7
Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 15
Warning: mysql_query(): A link to the server could not be established in /home/stats/public_html/text.php on line 15
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/stats/public_html/text.php on line 17
Warning: mysql_close(): no MySQL-Link resource supplied in /home/stats/public_html/text.php on line 50
User Online
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 6
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/stats/public_html/text.php on line 7
Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 15
Warning: mysql_query(): A link to the server could not be established in /home/stats/public_html/text.php on line 15
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/stats/public_html/text.php on line 17
Warning: mysql_close(): no MySQL-Link resource supplied in /home/stats/public_html/text.php on line 50
Online Rekord
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 6
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home/stats/public_html/text.php on line 7
Warning: mysql_query(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (11) in /home/stats/public_html/text.php on line 15
Warning: mysql_query(): A link to the server could not be established in /home/stats/public_html/text.php on line 15
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/stats/public_html/text.php on line 17
Warning: mysql_close(): no MySQL-Link resource supplied in /home/stats/public_html/text.php on line 50
Hier is der komplette aktuelle Quellcode der counter.php
<?php
ob_start();
include('http://stats.gaming2.net/text.php?show=useronline&id=940'); // z.B. http://www.g2-stats.de/acc/count.php
$user_online = ob_get_contents();
ob_end_clean();
// pfad zur datei, die den tageshöchststand speichert
$p_daycounter='counter_day.log';
if (!file_exists($p_daycounter))
{ $fh=fopen($p_daycounter, 'w'); fwrite($fh, date("d.m.y").'#0'); fclose($fh); }
//neuer Teil nur echt von bLaSpHeMy :X
$data = explode('#',file_get_contents($p_daycounter));
if($user_online > $data[1])
{
$fh=fopen($p_daycounter, 'w');
fwrite($fh, date("d.m.y").'#'.$user_online);
fclose($fh);
$daycounter = $user_online;
$daycounterdate = 'Today';
}
else
{
$daycounter = $data[1];
$daycounterdate = $data[0];
}
// ausgabe der besucherdaten
echo 'Online Rekord '.$daycounter;
?>
ob_start();
include('http://stats.gaming2.net/text.php?show=useronline&id=940'); // z.B. http://www.g2-stats.de/acc/count.php
$user_online = ob_get_contents();
ob_end_clean();
// pfad zur datei, die den tageshöchststand speichert
$p_daycounter='counter_day.log';
if (!file_exists($p_daycounter))
{ $fh=fopen($p_daycounter, 'w'); fwrite($fh, date("d.m.y").'#0'); fclose($fh); }
//neuer Teil nur echt von bLaSpHeMy :X
$data = explode('#',file_get_contents($p_daycounter));
if($user_online > $data[1])
{
$fh=fopen($p_daycounter, 'w');
fwrite($fh, date("d.m.y").'#'.$user_online);
fclose($fh);
$daycounter = $user_online;
$daycounterdate = 'Today';
}
else
{
$daycounter = $data[1];
$daycounterdate = $data[0];
}
// ausgabe der besucherdaten
echo 'Online Rekord '.$daycounter;
?>
Bitte helft mir!!
Kommentar