troubleshooting Question

PHP Cross Domain Includes

Avatar of APD Toronto
APD TorontoFlag for Canada asked on
JavaScriptASPPHPApache Web ServerMicrosoft IIS Web Server
8 Comments1 Solution140 ViewsLast Modified:
Hi Experts,

Is it possible to have includes from different domains, assuming proper permissions are set? Sort of what Classic ASP had using VIRTUAL keywords, which I have not done in ages.

Here is my situation...

www.domain.com is a WordPress site on a Linux server.
sub.domain.com is a custom PHP App on a IIS Server with plesk.

I need sub.domain/module to have same look and feel as www.domain.com, in particular header and footer and any dynamic changes, like new WP Pages added to the menu, which is part of the WP Header.

I'd like to avoid iFrames from www.domain.com as sub.domain.com/module will have pages in different heights, so this is a last resort.

I was thinking, either doing a WP Page template file, or my preferred way would be if from sub.domain.com I can someway call, or include the WP Header and WP Footer?

Perhaps, I can use cURL, JS/jQuery?

Thanks.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 8 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros