php: error importing file, no matter which path i use: absolute/"dotDOTslash", i get an error saying the file doesn't exist, but it does exist, wtf?
<p>okay so as the question says: i'm including files in a file, but i keep getting "no such file or directory" errors. and it really doesn't make sense to me, because i've checked them, i've checked their permissions and they're the same as those that i can include in other scripts<br/><br/>
just so you know: these includes are being made by a file that is being included within another <br/><br/>
ie: login.php - includes - check_login.php (which is the file that yields these errors)</p>

<p>here are my current includes:</p>

<pre><code>include('/home/user/public_html/taxnetwork.co.za/main/db/select_all.php');
require_once('input_cleaner.php');
include('/home/user/public_html/taxnetwork.co.za/main/db/insert.php');
require_once('/home/user/public_html/taxnetwork.co.za/main/mail/mailer.php');
</code></pre>

<p>and these are the errors i'm getting:</p>

<pre><code>Warning: require_once(./db/insert.php) [function.require-once]: failed to open stream: No such file or directory in /home/user/public_html/taxnetwork.co.za/main/mail/mailer.php on line 2

Fatal error: require_once() [function.require]: Failed opening required './db/insert.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user/public_html/taxnetwork.co.za/main/mail/mailer.php on line 2
</code></pre>
