Getting Relative Paths
<p>Super noob question here...</p>

<p>The file source:
www.mysite.com/blah/blah/customdir/ajax/folder/file.php</p>

<p>and I want to include a source:</p>

<p>www.mysite.com/blah/blah/customdir/include/func/functions.php</p>

<p>So I have tried:</p>

<pre><code>require_once( '.../include/func/functions.php' );
require_once( '../include/func/functions.php' );
require_once( '././include/func/functions.php' );
</code></pre>

<p>and a ton of other variations.  How do I get to it?  Setting a top level path on every file isn't an option (that's what the function file is for...)</p>

<p>Each of the above is giving me an error:
Warning: include(././include/func/functions.php) [function.include]: failed to open stream: No such file or directory in /home/mysite/public_html/mysite.com/customdir/ajax/folder/index.php on line 3</p>

<p>Warning: include(././include/func/functions.php) [function.include]: failed to open stream: No such file or directory in /home/mysite/public_html/mysite.com/customdir/ajax/folder/index.php on line 3</p>

<p>Warning: include() [function.include]: Failed opening '././include/func/functions.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mysite/public_html/mysite.com/customdir/ajax/folder/index.php on line 3</p>
