ChillyWilly Posted April 20, 2007 Share Posted April 20, 2007 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 Quote Link to comment Share on other sites More sharing options...
taith Posted April 20, 2007 Share Posted April 20, 2007 no... php can only include/require files from the same domain... same goes with the database... however... if you use .txt files as databases... potentially you can network multiple domains... Quote Link to comment Share on other sites More sharing options...
ChillyWilly Posted April 20, 2007 Author Share Posted April 20, 2007 What would I search for online to figure out how this is done. I would like to try and do this but get zero results for samples when I search for what I think I'm trying to do. Quote Link to comment Share on other sites More sharing options...
taith Posted April 20, 2007 Share Posted April 20, 2007 http://us2.php.net/manual/en/function.file-put-contents.php the put/get :-) Quote Link to comment Share on other sites More sharing options...
ChillyWilly Posted April 20, 2007 Author Share Posted April 20, 2007 Thank you for suppling the link Quote Link to comment Share on other sites More sharing options...
ChillyWilly Posted April 21, 2007 Author Share Posted April 21, 2007 Ok just gonna hire a freelancer and outsource this... Guess thats the only way for me to understand it. Will pay to have it done. Then look at how it was done then go from there. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.