Hi there,
I have installed a search engine on one of my websites - it had a few
bugs in it, I got all but one out of the script.
The results page works, but it displays this error on the top of the page:
Notice: Undefined index: REQUEST_METHOD in \www\search\libs\utils.php on
line 409
I have enclosed the code it refers to below. I am an amateur when it comes
to PHP, and would appreciate any help. Thanks
Line 409 is this first line.
$retVal = $GLOBALS[$envVar];
if (strlen($retVal) < 1) {
$retVal = getenv($envVar);
if (strlen($retVal) < 1) {
$retVal = $HTTP_ENV_VARS[$envVar];
if (strlen($retVal) < 1) {
$retVal = $HTTP_SERVER_VARS[$envVar];
}
}
Bandit