Jump to content

Share 1 admin with muliplte domains "would this work"


ChillyWilly

Recommended Posts

Here is what I want to do with a small network of 18 different domains they are not all the same server.

 

Would I be able to create a admin area on one domain we will can domain [A] in this admin area would have 2 files something like footerlinks.php and adsesne.php

 

 

Now we have the other websites (b) thru (Z) (I know more then 18 just an example) On website (b) were you want the adsense to show up you would put something to the effect of echo or include to get the file adsesne.php from (A) and a certain line on adsense.php with the correct ads for (b)..

 

So this way have all these sites I could just open the one file and add the adsense codes also the same idea with footerlinks.php for adding topsite links to all sites using one file.

 

Just curious if I could pass this kind of information across to different domains on different servers.

 

Hope this made sense.

 

I have tried to ad this to the adsense.php

<?php

$ads1 = <script type="text/javascript"><!--
google ad mumbo jumbo here
</script>

$ads2 = <script type="text/javascript"><!--
google ad mumbo jumbo here
</script>

$ads3 = <script type="text/javascript"><!--
google ad mumbo jumbo here
</script>

?>

 

and then put this in the area on website (b) where the ad is suppose to show

 

<?php

include 'http://www.example.com/adsense.php?ads1';

include 'http://www.example.com/adsense.php?ads2';

include 'http://www.example.com/adsense.php?ads3';

?>

 

 

However of course this didnt work. Someone had suggested perhaps I change adsense.php to adsense.txt

 

I know I may be asking a lot but if someone could create a working sample I can work off I would appreciate it. Also tell me the technical term for what im trying to accomplish

 

Thank you

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.