I have 2 domain names. I would like one of those domain names to run all of the ads for both domain names. So I got a fancy script and the like to run my adverts, and it looks perfect on the domain where I installed the script: http://ibold.net/sbbmain.php But when I try to include it on my second site (www.stopbeingbored.com) using a php include: <?php include("http://www.ibold.net/sbbmain.php"); ?> Code (markup): I get this mess of php errors: Is there a way to correct this? Thanks!
Your host would need to enable "URL fopen wrappers". http://us2.php.net/manual/en/function.include.php
If I put both of them on the same hosting (I have a virtual server) would that eliminate the proglem?
Only if you reconfigure PHP using URLS. If both sites are on the same server, try a literal path. ie. /home/username/file.php
I use this on a few sites. Ask the admin or host if there are security setting they have to limit this. They may open it up for you.
Only on the one site (stopbeingbored, where I am trying to load the ads). The other is with startlogic (ibold, where I am trying to run the script from), where I am not the admin at all. Just trying to save bandwidth on the larger site by doing this.
If one site is pulling ads off another site, isn't it using up more of the other sites bandwidth? It made sense in my head..or does that include function actually act by pulling it off the other server then serving it up as its own? I always thought of it like an iFrame..but what I know about PHP could fit in my little finger.. The system was also supposed to let advertisers 'bid' to advertise on my pages, and I figured it would be easier if I could let them bid on all of my advertising space instead of just one sites advertising space (and hopefully more profitable for me), and thus one installation made the most sense.