php require_once
<p>i have this in the first page "login.php"</p>

<pre><code>&lt;?php
session_start();
$msg='';
if ((isset($_POST))&amp;&amp; (!empty($_POST)))
{
require_once('log.php') or die(mysql_error());
$p=md5($pass);
if (login($login,$p))
{
    header('location:index.php');;
}
else 
{
    $msg="Login ou mot de passe incorrect";
}
}
?&gt;
</code></pre>

<p>log.php:
    

<pre><code>$req="SELECT * FROM admin WHERE login='$e' and password='$p'";
$res=mysql_query($req) or die(mysql_error()."\n".$req);

if(mysql_num_rows($res)!=0)
{
    $data=mysql_fetch_assoc($res);
    $_SESSION['adm']=array('code'=&gt;$data['code'], 'login'=&gt;$data['login']);
    return true;
    mysql_close();
}
else return false;
}?&gt;
</code></pre>

<p>and if i test the first page "login.php" i got this:</p>

<blockquote>
  <p>Warning: require_once(1): failed to open stream: No such file or
  directory in C:\xampp\htdocs\admin\login.php on line 6</p>
  
  <p>Fatal error: require_once(): Failed opening required '1'
  (include_path='.;C:\xampp\php\PEAR') in
  C:\xampp\htdocs\admin\login.php on line 6</p>
</blockquote>
