<p>I'm doing some PHP stuff on an Ubuntu server.</p>

<p>The path I'm working in is <strong>/mnt/dev-windows-data/Staging/mbiek/test_list</strong> but the PHP call <code>getcwd()</code> is returning <strong>/mnt/dev-windows/Staging/mbiek/test_list</strong> (notice how it's dev-windows instead of dev-windows-data).</p>

<p>There aren't any symbolic links anywhere. </p>

<p>Are there any other causes for <code>getcwd()</code> returning a different path from a local <code>pwd</code> call?</p>

<p><strong><em>Edit</em></strong>  </p>

<p>I figured it out.  The <strong>DOCUMENT_ROOT</strong> in PHP is set to <strong>/mnt/dev-windows</strong> which throws everything off.</p>

Which file are you calling the getcwd() in and is that file is included into the one you are running (e.g. running index.php, including startup.php which contains gwtcwd()).
Is the file you are running in /dev-windows/ or /dev-windows-data/? It works on the file you are actually running.
Here's an example of my current project:
index.php
```
```
<?php
    require_once('./includes/construct.php');
    //snip
?>
```
```
includes/construct.php
```
```
<?php
    //snip
    (!defined('DIR')) ? define('DIR', getcwd()) : NULL;

    require_once(DIR . '/includes/functions.php');
    //snip
?>
```
```