testing referers, please click for test

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GK
Forum Commoner
Posts: 51
Joined: Sat Jun 07, 2003 2:58 pm
Contact:

testing referers, please click for test

Post by GK »

testing referers, please click for test
http://www.realmaturesluts.com/linkchecker/files/in.php

i hope my code works

<?
include "xxxxxxx";
mysql_connect("$referer_mySQL_host","$referer_mySQL_user","$referer_mySQL_pwd")
or die("Unable to connect to SQL server!");
@mysql_select_db("$referer_dbName")
or die("Unable to select database!");

$ref=$HTTP_REFERER;
if(($ref!="")and(!ereg("unknown", $ref))and(!eregi($yourdomain,$ref))) {
mysql_query("insert into referer values(NULL,'$HTTP_REFERER')");
}
?>
GK
Forum Commoner
Posts: 51
Joined: Sat Jun 07, 2003 2:58 pm
Contact:

.

Post by GK »

is there a way to test this?

looks like it is not working
Brian
Forum Contributor
Posts: 116
Joined: Thu Apr 18, 2002 5:33 pm

I an unable to test your page.

Post by Brian »

If you want anyone else to access that page, you need to remove the user name and password challenge.
Post Reply