Re: Gathering user info with php or php and mysql.
| From: | Miguel Cruz | Date: | Fri, 14 Jun 2002 06:07:45 +0000 |
| Subject: | Re: Gathering user info with php or php and mysql. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-102156@lists.php.net to get a copy of this message | ||
On Fri, 14 Jun 2002, Chris Bunting wrote:
> My htaccess file:
>
> ErrorDocument 401 /error/error401.php
> ErrorDocument 403 /error/error403.php
> ErrorDocument 404 /error/error404.php
> ErrorDocument 500 /error/error405.php
>
> My question is this, Is it possible to use php to get the referring url,
> browser, os, date of error and stuff and then either write it to a text file
> or possible log it into mysql?
Run this little program:
<pre><? var_dump($_SERVER) ?></pre>
and see if you don't learn something useful.
migue