I have a number of web sites that are related but separate. They all share a database on the same server. For example, the candle site will query the candle information. The discount site will query the discount information.
Each of the sites use the same functions to call information from a database. I just pass different values to the functions to query the correct information. However, each site has its own function php page which means when I update a function on one site, I have to do it on all of them. I'd like to have them all be able to include the functions from one master function page.
Can I use a php include statement to include pages from another domain?
For example:
// candles.com and discounts.com could be two sites
// will this work on candles.com?
include('http://discounts.com/myfunctions.php');