RE: php-master-web / log_download.php
| From: | James Cox | Date: | Thu, 16 May 2002 18:26:49 +0000 |
| Subject: | RE: php-master-web / log_download.php | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-10245@lists.php.net to get a copy of this message | ||
are we ready to go with this? (ie, when it updates, switch it off on
www.php.net ? :))
James
> -----Original Message-----
> From: jim winstead [mailto:jimw@apache.org]
> Sent: Thursday, May 16, 2002 7:23 PM
> To: php-mirrors@lists.php.net
> Subject: cvs: php-master-web / log_download.php
>
>
> jimw Thu May 16 14:22:36 2002 EDT
>
> Modified files:
> /php-master-web log_download.php
> Log:
> log outside the web tree
>
> Index: php-master-web/log_download.php
> diff -u php-master-web/log_download.php:1.1
> php-master-web/log_download.php:1.2
> --- php-master-web/log_download.php:1.1 Tue May 14 20:56:07 2002
> +++ php-master-web/log_download.php Thu May 16 14:22:36 2002
> @@ -1,6 +1,6 @@
> <?php
>
> -$log = @fopen("logs/download.log", "a");
> +$log = @fopen(strftime("/local/log/download.%Y%m%d.log"), "a");
> if ($log) {
> $log_line = sprintf("%s %s %s %s %s", date("H:i:s d-M-Y"),
> $user_referer, $download_file, gethostbyaddr($user_ip), $mirror);
> fputs($log, "$log_line\n");
>
>
>