Any suggestions what is happening with include and @include
<p>When I use:</p>

<pre><code>include "../common/common_functions.php";
include "../common/functions.php";
include '../../common/global_functions.php';
</code></pre>

<p>my browser gives me a lot of warnings, but when i use:</p>

<pre><code>@include "../common/common_functions.php";
@include "../common/functions.php";
@include '../../common/global_functions.php';
</code></pre>

<p>it's working. I know what is the difference between them, but is there any other explanation because files are there and its working with <code>@</code> but I know that it's not good to be used! Any suggestion what might be other reason?</p>

<p>It gives me this errors :</p>

<pre><code>Warning: include(../../common/constants.php) [function.include]: failed to open stream: No such file or directory in /var/www/ebelejnik/trunk/src/www/root/teadmin/common/common_functions.php on line 4
Warning: include() [function.include]: Failed opening '../../common/constants.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/ebelejnik/trunk/src/www/root/teadmin/common/common_functions.php on line 4
</code></pre>

<p>I understand why it gives me these errors. Because I make a <code>subdir</code> and my file system looks like this:</p>

<pre><code>/root /common /teadmin /common /admin_pages
</code></pre>

<p>And when I call a file in <code>/teadmin/common</code> from <code>/teadmin/admin_pages</code>, it starts to execute it but it calls several files from <code>/root/common</code> and can't find them because i use a path like this:</p>

<pre><code>include '../common/constants.php';
</code></pre>

<p>When I do it like this:</p>

<pre><code>include '../../common/constants.php';
</code></pre>

<p>This is from file <code>common_functions.php</code> which is in <code>/root/teadmin/common/</code>. It's working in a second way from <code>/root/teadmin/admin_pages/</code> but gives me an error in <code>/root/teadmin/</code> when i call it. Is there a problem with doing it like this:</p>

<pre><code>include '../common/constants.php';
@include '../../common/constants.php';
</code></pre>
