Forum Moderators: coopster

Message Too Old, No Replies

2-for-1: PHP Error Pages & Variables

Getting info from error pages about users...

         

decdim

12:09 am on Feb 4, 2004 (gmt 0)



1) Is anyone interested in some "basic" PHP error pages they can incorporate into their site for gathering information (broken links, referals, attempted unauthorized access, etc.) in which information is sent to you (not all cases)?

If so, do you prefer one posting for all the scripts or individually posted?
---
2) Needing to know if it is possible to incorporate the following "variables" into PHP scripts or are they only usuable with Perl?

HTTP_X_FORWARDED_FOR
HTTP_VIA
HTTP_ACCEPT_LANGUAGE

Am I needing to use on of these to make them work:
%{ENV:variable}
%{HTTP:header}
---
Thanks!

jetboy_70

12:37 am on Feb 4, 2004 (gmt 0)

10+ Year Member



Assuming your server's kicking them out, you should be able to access the server variables mentioned by using PHP's $_SERVER array:

$_SERVER['HTTP_ACCEPT_LANGUAGE']

More information in the PHP manual:

[php.net...]

decdim

1:01 am on Feb 4, 2004 (gmt 0)



Thanks for the link on the PHP Predefined Variables, I'll readup on it!