isn't it $date("md") instead of $date(md) ?
cheers,
-- djeyl
From: "Brian A. Stumm" <[EMAIL PROTECTED]>
> If you wanted to use php to put this info on your website you could use
> this (change $dir to be the path to your logs) to show total unique
> connections today:
>
> <?
>
> $dir = "PATHTOLOGDIRECTORY";
> $date = date(md);
> $search = $dir . "L" . $date . "*";
> echo `grep " connected" $search | cut -d'<' -f3 | sort -u | wc -l`;
> echo " Different Players so far today";
>
> ?>
>
> If you wanted it for all month just change:
>
> $date = date(md);
>
> to
>
> $date = date(m);
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux