Jump to content

Includes erroring


busillis

Recommended Posts

Is there a way for me to force the path of where the file is kept?

 

root: index.php

 

root/includes: a.php, b.php, c.php

 

Index includes a.php.

 

a.php includes b.php

 

b.php includes c.php

 

When I invoke index.php, c.php has errors.  :-[

 

When I invoke b.php, c.php does not error  :D

 

 

:wtf:

 

Link to comment
https://forums.phpfreaks.com/topic/204573-includes-erroring/
Share on other sites

Actually, I don't think thats the problem.

 

I've put some debug echos in and it does seem to be calling it.

 

As described above, the error only occurs when calling index.  c.php manages the database connection and i get an error saying:

 

Warning: mysql_query() [function.mysql-query]: Access denied for user 'SYSTEM'@'localhost' (using password: NO)

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established

 

Could this be a problem if two different phps are calling include to c.php?

Link to comment
https://forums.phpfreaks.com/topic/204573-includes-erroring/#findComment-1071149
Share on other sites

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.