path - Include PHP File: 2 Different Domains On The Same Server -


I'm looking for it everywhere, but the solution can not be found.

I have PHP files at www.domainA.com. I am trying to include files from www.domainB.com on that domain. Both of these accounts are on the same server.

I am using full pathing to do this:

/ path / to / my / site / public_html / include.php

but I'm denying permission:

  WARNING: Include (/home/domainA_account/public_html/folder/include.php) [function .include]: Opening Section Failed to: Permission denied at / / / / / / /  

I understand why this permission error is appearing, But I do not know how to fix it? P>

I think your best bet is to duplicate the file in your two domains, to ensure that they have version control system or deployment Using scripts is put in sync.

View your included.php as a third party library, which requires updating your environment, and make sure that a process (if you can do an automatic ...) Make sure the force domain is in sync.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -