Erro Função preg_match()
Olá, estou tento o seguindo erro quando tento entrar no parte de administração do meu site, antes era usava o função ereg() ai alterei para preg_match() e estou com esse erro
>
Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /home/u981870588/public_html/admin/protecao/interface.php on line 29 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /home/u981870588/public_html/admin/protecao/interface.php on line 29 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /home/u981870588/public_html/admin/protecao/interface.php on line 29 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /home/u981870588/public_html/admin/protecao/interface.php on line 38 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /home/u981870588/public_html/admin/protecao/interface.php on line 38 Warning: preg_match(): Delimiter must not be alphanumeric or backslash in /home/u981870588/public_html/admin/protecao/interface.php on line 38
<?PHP
// ------ create table variable ------
// variables for Netscape Navigator 3 & 4 are +4 for compensation of render errors
$Browser_Type = strtok($HTTP_ENV_VARS['HTTP_USER_AGENT'], "/");
if ( preg_match( "MSIE", $HTTP_ENV_VARS['HTTP_USER_AGENT']) || preg_match( "Mozilla/5.0", $HTTP_ENV_VARS['HTTP_USER_AGENT']) || preg_match ("Opera/5.11", $HTTP_ENV_VARS['HTTP_USER_AGENT']) ) {
$theTable = 'WIDTH="400" HEIGHT="245"';
} else {
$theTable = 'WIDTH="400" HEIGHT="245"';
}
echo $HTTP_ENV_VARS["QUERY_STRING"];
// ------ create document-location variable ------
if ( preg_match("php\.exe", $HTTP_SERVER_VARS['PHP_SELF']) || preg_match("php3\.cgi", $HTTP_SERVER_VARS['PHP_SELF']) || preg_match("phpts\.exe", $HTTP_SERVER_VARS['PHP_SELF']) ) {
$documentLocation = $HTTP_ENV_VARS['PATH_INFO'];
} else {
$documentLocation = $HTTP_SERVER_VARS['PHP_SELF'];
}
if ( $HTTP_ENV_VARS['QUERY_STRING'] ) {
$documentLocation .= "?" . $HTTP_ENV_VARS['QUERY_STRING'];
}
include("../config.php");
?>Discussão (6)
Carregando comentários...