Warning: Failed opening 'seguridad.php' for inclusion (include_path='')
Despues leyendo me di cuenta que todos las paginas o modulos que se incluyen tienen que ir en una carpeta include habria que modificar el include_path en php, hay esta mi duda el include_ path originalmente dice:
include_path = ; UNIX: "/path1:/path2" Windows: "/path1:/path2"
yo habria cambiado el de windos dandole la ubicación de la carpeta include:
include_path = ; UNIX: "/path1:/path2" Windows: "C:/carpeta/php/include"
creyendo que de esa manera se hacia, pero aún asi me seguia tirando errores.
el codigo de seguridad es este:
Código PHP:
<?php
$fallo="Acceso Denegado!!! ";
if(!isset($php_auth_user)){
header('WWW-Authenticate: Basic realm="127.0.0.1"');
header('http/1.0 401 unauthorized');
echo $fallo;
exit;
}else{
if($link=mysql_connect("conexion")){
mysql_select_db("db",$link);
}
$sql="select * from seguridad where((usr_login='$php_auth_user') and (usr_pass='$php_auth_pw'))";
$qpass=mysql_query($sql,$link);
if(mysql_num_rows($qpass)<>1){
echo $fallo;
exit;
}
}
?>