TeddyKiller Posted August 12, 2010 Share Posted August 12, 2010 Transferring data from sub-domain.site.com Reading sub-domain.site.com What is this all about? I'm going to put all .. images into a separate sub-domain eg: images.site.com. This would create a folder inside my public_HTML called "images" Now when sites have that Transferring data, and Reading... is this .. something relating to what I want. Facebook also does it, and they get their images for the site from a sub domain, how is it all done? I'm not sure if its entirely PHP, but I hope someone can help. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/210572-reading-site-name-and-transferring-data-site-name/ Share on other sites More sharing options...
petroz Posted August 13, 2010 Share Posted August 13, 2010 First, you should ask why before how on this topic.. It is done because high traffic sights split up their content. If you dont have high traffic, I wouldnt even bother trying... Quote Link to comment https://forums.phpfreaks.com/topic/210572-reading-site-name-and-transferring-data-site-name/#findComment-1098726 Share on other sites More sharing options...
TeddyKiller Posted August 13, 2010 Author Share Posted August 13, 2010 First, you should ask why before how on this topic.. It is done because high traffic sights split up their content. If you dont have high traffic, I wouldnt even bother trying... You're right, sorry, didn't think. I don't really have any traffic at all, maybe about 50 unique a month. Though this will increase and I'd rather prepare myself before hand seeing as I'm redoing the plan of the site. I don't want it to be all cluttered you see. So, if they split up their content.. how are they using it? Quote Link to comment https://forums.phpfreaks.com/topic/210572-reading-site-name-and-transferring-data-site-name/#findComment-1098791 Share on other sites More sharing options...
petroz Posted August 13, 2010 Share Posted August 13, 2010 I have had to do this before for a few sites... What I have done was split up dynamic and static content. Images, Videos on one server and HTML or Generated HTML on another server. Making the switch on a site really isnt too much work, its typically just a "Find and Replace" on stuff like "../images/" with "images.example.com/images/" Let me know if that helps. Quote Link to comment https://forums.phpfreaks.com/topic/210572-reading-site-name-and-transferring-data-site-name/#findComment-1098921 Share on other sites More sharing options...
TeddyKiller Posted August 13, 2010 Author Share Posted August 13, 2010 I have had to do this before for a few sites... What I have done was split up dynamic and static content. Images, Videos on one server and HTML or Generated HTML on another server. Making the switch on a site really isnt too much work, its typically just a "Find and Replace" on stuff like "../images/" with "images.example.com/images/" Let me know if that helps. Viaing doing that, would have the transferring data from, or reading.. whichever? I read that loading images a directory.. eg: "images/" is quicker than going "images.site.com/images" or whatever. So why would splitting up content be.. better for high traffic sites? I understand dynamic content is like.. PHP, etc. Although what is Static? Quote Link to comment https://forums.phpfreaks.com/topic/210572-reading-site-name-and-transferring-data-site-name/#findComment-1098962 Share on other sites More sharing options...
petroz Posted August 13, 2010 Share Posted August 13, 2010 Its not about speed, its about splitting the load on the server, which in turn will seem faster to the user.... Quote Link to comment https://forums.phpfreaks.com/topic/210572-reading-site-name-and-transferring-data-site-name/#findComment-1098963 Share on other sites More sharing options...
TeddyKiller Posted August 14, 2010 Author Share Posted August 14, 2010 Its not about speed, its about splitting the load on the server, which in turn will seem faster to the user.... Sorry, I don't think I understand. Is there like a more detailed thread about this? Quote Link to comment https://forums.phpfreaks.com/topic/210572-reading-site-name-and-transferring-data-site-name/#findComment-1099114 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.