Also ich habe von nem kollegen ein deisgn in PHP bekommen:
PHP
<?
//
$arch = "datos.txt";
// Users Datenbank (Apache webserver2.1).
$logoutTime = 900;
//
$IP = $REMOTE_ADDR;
$count = 0;
$res = '';
$fp = fopen($arch,"r");
$t = time();
$content = fread($fp,filesize($arch));
fclose($fp);
$lineas = split(" ",$content);
for ($i=0; $i < count($lineas); $i ) {
$datos = split(':',$lineas[$i]);
$n = $t - $logoutTime;
if ($datos[0] != $IP && $datos[1] > ($n)) {
$res .= "$datos[0]:$datos[1] ";
$count ;
}
}
$res .= "$IP:$t ";
$count ;
$fp = fopen($arch,"w");
fwrite ($fp,$res);
fclose($fp);
echo " $count Activ Users"; <?
$counterFile = "visitas.txt";
function displayCounter($counterFile) {
$fp = fopen($counterFile,rw);
$num = fgets($fp,5);
$num = 1;
echo "$num";
exec( "rm -rf $counterFile");
exec( "echo $num > $counterFile");
}
if (!file_exists($counterFile)) {
exec( "echo 1 > $counterFile");
}
displayCounter($counterFile);<?php
$ip=getenv($REMOTE_ADDR);
include("config.php");
echo $conectar;
echo $ip;
<?php
#****Mes en letras****#
echo "[b]Decowar.com
";
print date("d");
$m = date("m") -1;
$ma= array("Januar","Februar","März","April",
"Mai","Juni","Juli","August","September",
"Oktober","November","Dezember") ;
$ml = " de $ma[$m] del ";
echo "$ml";
print date("Y");
echo ".[/b]";
?>
?>
Alles anzeigen
stimmt das was nicht an dem code?
oder weiß jemand warum dreamweaver das nicht anzeigt?