Warnung: file_put_contents(/home/www/web1/html/php_dev/test.txt) [function.file-put-contents]: failed to open stream: Permission denied in /home/www/web1/html/php_dev/sys/lib.activity.php (Zeile 58)
Counter script - Anzeige Fehler [Archiv] - PHP-Scripte PHP-Tutorials PHP-Jobs und vieles mehr
brauche Webseite ideal für Vereine und Firmen
- Ad -
php-resource




Archiv verlassen und diese Seite im Standarddesign anzeigen :
Counter script - Anzeige Fehler


 
Darkseed
20-02-2006, 21:09 
 
Hi! Ich sitz schon ne ganze Weile an dem Script es funktioniert alles perfekt nur ist ein großer Fehler drin. Also es soll ein Counter sein denn man ganz normal mit <img src="counter.php"> als image dann wieder geben soll.

Stattdessen ist aber ein Fehler in der Anzeige gehe ich dann auf Rechtsklick Grafik anzeigen wird der Counter richtig ausgegeben. Der Fehler müsste irgendwo da drin stecken hab' aber leider nicht so viel Ahnung von Php.


<?php
# show output
$html_out = '';

if ($visible_count) {
# make sure count is a string
$cnt = '' . $cnt;

# pad zero(es) to the count
# (used when showing text digits in Arabic or image digits)
if (($digit_type == 0) && $arabic_count || ($digit_type == 1)) {
if ($digit_length >= strlen($cnt)) { $digit_pad = $digit_length - strlen($cnt); }
for ($i=0; $i<$digit_pad; $i++) { $cnt = '0' . $cnt; }
}

if ($digit_type == 0) {
if (! $arabic_count) {
if ($chinese_count) {
$cnt = arabic2chinese($cnt);
} elseif ($roman_count) {
$cnt = arabic2roman($cnt);
}
}
} elseif ($digit_type == 1) {
# check if relative path is used for digit images directory
if (! preg_match('@^(http://|https://|/)@', $img_dir)) {
$img_url = preg_replace('@(.*)/.*@', '$1', $script_url);
$img_dir = "$img_url/$img_dir";
}
}

if ($visible_stat) {
if ($stat_frame) {
# show statistics page in given window
$html_out .= "<a href=\"${script_url}?stat\" target=\"${stat_frame}\">";
} else {
# show statistics page in same window
$html_out .= "<a href=\"${script_url}?stat\">";
}
}
if ($digit_type == 0) {
# show count as text
$html_out .= $cnt;
} elseif ($digit_type == 1) {
# show count as image
for ($i=0; $i<strlen($cnt); $i++) {
$html_out .= "<img src=\"$img_dir/$cnt[$i].$img_ext\"";
if ($img_width && $img_height) { $html_out .= " width=\"$img_width\" height=\"$img_height\""; }
if ($img_align) { $html_out .= " align=\"$img_align\""; }
$html_out .= " border=\"0\" />";
}
}
if ($visible_stat) { $html_out .= '</a>'; }
}

echo $html_out;
}
?>

 
chrpun
21-02-2006, 02:11 
 
bitte post editieren: PHP-tags einfügen. alles nachzulesen unter:
http://www.php-resource.de/forum/showthread.php?s=&threadid=50454

 
penizillin
21-02-2006, 02:11 
 
hm... mal den rechner neugestartet?

 
Darkseed
21-02-2006, 17:17 
 
Danke für den Tipp mit den Farben.

Am Rechner liegt es nicht. Irgendwas in dem Code lässt die Image nur in einer HTML Datei wiedergeben die extra erzeugt wird...brauch' aber nur die Image.

Hoffentlich könnt ihr mir helfen.

 
Darkseed
22-02-2006, 12:37 
 
Kann keiner was damit anfangen?


Alle Zeitangaben in WEZ +2. Es ist jetzt 19:11 Uhr.