I'm trying to set up a CGI search for a large website. but when I try to add this code:
<?php
$QSTRING = $_SERVER['QUERY_STRING'];
while (list ($header, $value) = each ($HTTP_GET_VARS))
{
$QSTRING = $QSTRING.'&'.$header.'='.$value;
}
virtual("/cgi-bin/search.cgi".'?'.$QSTRING);
?>
I get a fatal error:
Fatal error: Call to undefined function virtual() in search.php on line 41
Also, I have added a search box on other webpages, but when trying to enter data I get a 500 server error. I've checked the FAQ, my cgi file is the correct permission, and I uploaded it as a binary file. I'm not sure what to do next...
<?php
$QSTRING = $_SERVER['QUERY_STRING'];
while (list ($header, $value) = each ($HTTP_GET_VARS))
{
$QSTRING = $QSTRING.'&'.$header.'='.$value;
}
virtual("/cgi-bin/search.cgi".'?'.$QSTRING);
?>
I get a fatal error:
Fatal error: Call to undefined function virtual() in search.php on line 41
Also, I have added a search box on other webpages, but when trying to enter data I get a 500 server error. I've checked the FAQ, my cgi file is the correct permission, and I uploaded it as a binary file. I'm not sure what to do next...
Comment