title: how should i define session_start(); with include files correctly?
body: <p>how should i define <code>session_start();</code> with include files correctly? because i made a <code>session_start();</code> at <code>login_proses.php</code> and i wanna include <code>koneksi.php</code></p>
  <p>but apparently found an error
  it says that the files cannot found</p>
  <p>here is the error warning</p>
  <blockquote>
  <p>Warning: include(koneksi.php): failed to open stream: No such file or
  directory in C:\xampp2\htdocs\spk\admin\login_proses.php on line 3</p>
  <p>Warning: include(): Failed opening 'koneksi.php' for inclusion
  (include_path='C:\xampp2\php\PEAR') in
  C:\xampp2\htdocs\spk\admin\login_proses.php on line 3</p>
  <p>Fatal error: Uncaught Error: Call to undefined function mysql_query()
  in C:\xampp2\htdocs\spk\admin\login_proses.php:8 Stack trace: #0
  {main} thrown in C:\xampp2\htdocs\spk\admin\login_proses.php on line 8</p>
  </blockquote>
  <p>to make it more clear here is the screenshot</p>
  <p><a href="https://i.stack.imgur.com/N0vim.png" rel="nofollow noreferrer">this is login_proses.php file</a></p>
  <p><a href="https://i.stack.imgur.com/kKe4N.png" rel="nofollow noreferrer">this is koneksi.php file</a></p>
  <p>i saved login_proses at -&gt; htdocs/spk/admin/login_proses.php
  i saved koneksi.php at -&gt; htdocs/spk/koneksi.php</p>
  <p>i used localhost/ to run my program</p>
  <p>i hope anyone could help me
  thank you</p>