My site structure is like this.

HTDOCS folder: `/WEB/mysite/htdocs/`

ADMIN folder: `/WEB/mysite/htdocs/admin/`

EDIT ADMIN folder: `/WEB/mysite/htdocs/admin/edit`

HTACCESS protected folder: `/WEB/mysite/htdocs/admin/flock/`

TEST folder : `/WEB/mysite/htdocs/test/`

**SITUATION 1**

The following script1.php is placed in the Admin folder:

```
<?php
require_once 'flock/sql.php' or die("Error");
?>

```

Now I include script1.php on scripttest.php placed in the Edit admin folder:

```
<?php
require_once '../script1.php' or die ("Error");
?>

```

*It works without any error.*

**SITUATION 2**

Now I have script2.php placed in the Test folder:

```
<?php
require_once '../admin/flock/sql.php' or die("Error");
?>

```

And call it from scripttest.php placed always in the Edit admin folder:

```
<?php
require_once '../../test/script2.php';
?>

```

*And it won't work anymore. Those are the errors:*

```
Warning: require_once() [function.require-once]:
Unable to access ../admin/flock/sql.php in /WEB/mysite/htdocs/test/script2.php
on line 2

Warning: require_once(../admin/flock/sql.php) [function.require-once]:
failed to open stream: No such file or directory in /WEB/mysite/htdocs/test/script2.php
on line 2

Fatal error: require_once() [function.require]: Failed opening required
'../admin/flock/sql.php' (include_path='/usr/local/lib/php/:/WEB/mysite/') in
/WEB/mysite/htdocs/test/script2.php on line 2.

```

**The two situation are the same thing. Aren't they?
Why is situation two not working?**