Hallo Forum Gemeinde,
verwende seit kurzem die PHP Web Stat.Soweit ist alles auf dem Server online und funktioniert auch,bis auf eines.
Habe eine php Seite wo ein Bild generiert wird.Siehe Code:
Code (PHP):<?php
header('Content-type: image/jpeg');
$file = 'aktuell.jpg';
if (file_exists($file)) {
$size = getimagesize($file);
$width = $size[0];
$height = $size[1];
$picture = imagecreatefromjpeg($file);
if ($width>$height) {
$width_new = 800;
$height_new = intval($height * $width_new / $width);
} else {
$height_new = 800;
$width_new = intval($width * $height_new / $height);
}
$image = imagecreatetruecolor($width_new, $height_new);
imagecopyresampled($image, $picture, 0, 0, 0, 0, $width_new, $height_new, $width, $height);
imagejpeg($image);
imagedestroy($image);
}
$logdatei=fopen("logfile.txt","a");
fputs($logdatei,
date("d.m.Y, H:i:s",time()) .
", " . $_SERVER['REMOTE_ADDR'] .
", " . $_SERVER['REQUEST_METHOD'] .
", " . $_SERVER['PHP_AUTH_USER'] .
", " . $_SERVER['HTTP_USER_AGENT'] .
", " . $_SERVER['PATH_INFO'] ."\n"
);
fclose($logdatei);
?>
Möchte die PHP Seite mit
Code (PHP):<?php include ( '../stat/config/tracking_code.php' ) ?>
hinzufügen.Leider wird keine Aufzeichnung durchgeführt.Bin kein PHP Programmierer darum die Frage an euch.Bin euch dankbar für eine Lösung.