# PHP and include\_path

**URL:** <https://forum.kirupa.com/t/php-and-include-path/237182>\
**Category:** programming\
**Created:** [August 27, 2007, 10:46pm UTC](https://forum.kirupa.com/t/php-and-include-path/237182 "2007-08-27T22:46:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marSoul](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/marsoul/32/3456_2.png) [@marSoul](https://forum.kirupa.com/u/marSoul)\
**Post date:** [August 27, 2007, 10:46pm UTC](https://forum.kirupa.com/t/php-and-include-path/237182/1 "2007-08-27T22:46:35Z")

</div>

HI  
I have problem configuring my scripts to work with cpanel.  
when I want to read a file from a lower directory I get an error message that says :

> PHP Warning: include(UserInterface.php) [[function.include](http://localhost/fight2survive_ftp/function.include)]: failed to open stream: No such file or directory  
> how can I solve this problem ?  
> for the root directory I have put this code :

```php
ini_set("include_path","connection:classes");
include("UserInterface.php");

```

and it works correctly but when I need to run a file from upper directory that need access to another location I get error !  
please help me
