Jump to content

(include_path='./:/usr/local/lib/php') Question??


Recommended Posts

Warning: main(index_construct_navi.php) [function.main]: failed to open stream: No such file or directory in /site/main_sub1/sub1_ns/index_ns.php on line 11

 

Warning: main(index_construct_navi.php) [function.main]: failed to open stream: No such file or directory in /site/main_sub1/sub1_ns/index_ns.php.php on line 11

 

Warning: main() [function.include]: Failed opening 'index_construct_navi.php' for inclusion (include_path='./:/usr/local/lib/php') in /site/main_sub1/sub1_ns/index_ns.php on line 11

 

My problem is that I get this error.

 

My main directory index page is on the root 'www', and then I have sub folders to keep data seperate.  I use the include function and it works well until I get out of the main directory. 

 

I have been trying in vane to set the path for the page to look for the images and such for that page on the sub directory but get the above error. 

 

Any pointers be appreciated,

 

Cheers

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/64165-include_pathusrlocallibphp-question/
Share on other sites

The first two are not found files, while the second im guessing is due to permissions. From what i know on shared hosts they add a user account for a specific client which doesnt have permissions to read or write files other then his. Also sorry if im ignorant in this case but shouldnt e relative path be like "../../path/path"?

The first two are not found files, while the second im guessing is due to permissions. From what i know on shared hosts they add a user account for a specific client which doesnt have permissions to read or write files other then his. Also sorry if im ignorant in this case but shouldnt e relative path be like "../../path/path"?

 

remember when calling a file

we do this

../../index.php this means your calling a file outside the folder note the number of ../ refer to the number of folder that

 

folder/index.php means your calling it inside

Well I know I got part of what you guys said.  I added the whole link as http:// to get the page to come in.  I couldnt' get the ../../ working.  I know I have to figure this out or I have to go back and add that into ever file  :(

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.