Jump to content

.inc.php file not getting included


dhvani

Recommended Posts

Hi ,

 

I have one problem not getting solution for this.

In my site i have one file called example.php .... in this file i am including configure.php file. In which i define one constant 'a'.

 

Than I include one file called db_connect.inc.php and using the variable a in that.

 

this works very fine on my webserver but in my local server i am not getting variable a's value in db_connect.inc.php.....

 

I am not getting that where is the problem??

 

Please help me out in this.....

 

Its really urgent.

 

thanks

Link to comment
Share on other sites

Hi I am using require_once only the error  I got is

 

main(DIR_FS_INCxtc_db_error.inc.php) [function.main]: failed to open stream: No such file or directory in /var/www/html/xtc/inc/xtc_db_query.inc.php on line 20

 

here xtc_db_query.inc.php is included to my main file using require_once and i used the constant DIR_FS_INC in require_once to get the file. But in this file I am not getting this constant's value. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

 

 

So if any one can help please.

 

Thanks

Link to comment
Share on other sites

hi,

 

I don't think that my file is not getting called. Because I get Whatever I echo there.

 

What I am doing is...

 

A is my constant.

 

//code

echo A;  // Here I get the value of A

require_once('include/header.inc.php');

 

 

Now in include/header.inc.php i do this.

 

echo A; // Here i Get 'A' not the value of A

 

I cant understand that y i am getting this error.....

 

 

 

Link to comment
Share on other sites

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.