Very good explaination So Called. For me, good would mean a request was made for a valid file and bad would mean the file doesn't exit. Anyway, I was trying out $_SERVER['REQUEST_URI'] on my localhost like this:
<?php$item = $_SERVER['REQUEST_URI'];include "connect_to_mysql.php";mysql_query("INSERT INTO url_log (req_file) VALUES ('" . $item . "')") or die(mysql_error());?>
It successfully executes with "localhost" in the url, but gives me a "file not found" error and fails to execute the index.php script when I typed "localhost/xx" in the url. Do I need to change the setting on my localhost server or change my script?