|
|
|
|
|
|
![]() |
#1 |
Internet! Is that thing still around?
Join Date: Apr 2005
Posts: 3
|
php hitbot detection
i have a little php problem.
i just put some hitbot detection script on my tgp, but i cant get it to work right. i inserted a couple of links on my index page with the following code: PHP Code:
PHP Code:
anyone knows why it does not work? |
![]() |
![]() |
![]() |
#2 |
Trying is the first step towards failure
|
A couple of things i noticed at a glance...
Maybe this: <? echo $_SERVER['HTTP_REFERER']; ?> Should be <? echo urlencode($_SERVER['HTTP_REFERER']); ?> Or possibly this: mail("proxy@domain.com", "Hitbot:", "From: $from\r\n"); should be mail("proxy@domain.com", "Hitbot:", "From: " . $_GET['from'] . "\r\n"); How do you know the variable is being passed to the go.php file?
__________________
Link List Land - Linklist Creation, Design and Implementation. |
![]() |
![]() |
![]() |
#3 |
Shut up brain, or I'll stab you with a Q-tip!
|
as matt said:
only the mail("proxy@domain.com", "Hitbot:", "From: " . $_GET['from'] . "\r\n"); should fix the problem i think, if your server does not support register_globals in the php, otherwise it should work fine.. |
![]() |
![]() |
![]() |
#4 |
Internet! Is that thing still around?
Join Date: Apr 2005
Posts: 3
|
thanks guys!
i changed the mail code and it works fine now ![]() |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|