1) I have tried both include() and require_once().
2) Both domain are on the same physical server.
3)php safe mode = off.
Thanks for the quick response!
(BTW - what i am trying to achive:
I have sveral differnet daomin using the same classes and databse, so I am trying to include the relevant php files from one domain in all the other domains).
I would not invoke include() using a URL when the file to be included resides on the same filesystem as the script performing the include. For one thing, it's slower, as PHP has to perform DNS lookup and and HTTP fetch on the file.
Something I did not explicitly say earlier. include() and require() are not limited to the document root of the site in which they are invoked. So long as safe_mode is off, you can freely include files from anywhere on your server's filesystem.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.