Forum Moderators: coopster
//Construct other variables
$combine = $ip . " tried to load " . $server_name . $request_uri ;
$pieces = explode("/", $request_uri);
$request_uri_fp = $pieces[1];
$request_uri_lc = strtolower($request_uri_fp);
$request_uri_sp = $pieces[2]; if ($pos === false) { $findme = 'http:';
$pos = strpos($request_uri, $findme);
$pieces = explode("/", $request_uri); But there have been many hackers and other attempts lately.....
What's "http" doing in request_uri?
How do you get from strpos (a number) to false (a toggle)?
Isn't PHP's loose typing great!Yes, hours after posting I remembered that FALSE translates numerically as 0 ... except when it translates as -1. Or possibly you need it to translate as -1 because 0 might mean a legitimately non-false value (such as the first character in a string, which is by no means the same thing as the character not occurring at all).