|
internetking - Including files from a separate domain is a really bad idea, in general, and most PHP setups don't allow it. If I were you, I would just copy the configuration file over to your new sites directory. If you're hosting the two sites on the same server, you could put the the file outside the web root and reference it dynamically.
Assuming the following file structure
-www
--site1.com
---etc
---etc2
--site2.com
---etc
---etc2
Put the file you want included inside the www folder (assuming its not web accessible) and include from the site1 and site2 directories with
require_once('../file_to_include.php');
__________________
Plugin-Developer.com - Custom plugin development to fit your needs. Plugins available for WordPress and Drupal, among others.
|