Jump to content

Simple linking problem in php I hope


big-dog1965

Recommended Posts

I have a php file in a admin directory that referances another file in the ClanApp directory I cant seem to get the connection made

 

include(dirname(__FILE__)."ClanApp/language.php");

This is the error I get

 

Warning: include(/home/public_html/ClanApp/adminClanAppView/language.php) [function.include]: failed to open stream: No such file or directory in /home/public_html/ClanApp/admin/index.php on line 9

Link to comment
https://forums.phpfreaks.com/topic/145150-simple-linking-problem-in-php-i-hope/
Share on other sites

I think it's saying that line 9 of

 

/home/public_html/ClanApp/adminClanAppView/language.php

 

can't find:

 

/home/public_html/ClanApp/admin/index.php on line 9

 

but then again I always get confused with includes and paths.

I think it's saying that line 9 of

 

/home/public_html/ClanApp/adminClanAppView/language.php

 

can't find:

 

/home/public_html/ClanApp/admin/index.php on line 9

 

but then again I always get confused with includes and paths.

Other way around ;) The script has:

include(/home/public_html/ClanApp/adminClanAppView/language.php);

 

This is the line that is causeing the problem

include(dirname(__FILE__)."ClanApp/language.php");

Warning: include(/home/public_html/ClanApp/adminClanAppView/language.php) [function.include]: failed to open stream: No such file or directory in /home/public_html/ClanApp/admin/index.php on line 9

It is not backing out of the admin directory and going into the directory where the language.php file is.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.