Basically, I have a number of web sites that are essentially the same exact site just slightly different. A lot of them use the same images and what I want to do is make it to where I just need one file to change to change all of them at once. So I have a parse ini file that is my css (it works just fine and it printed out the background image just fine, but I know that css only supports background-image only; if there were a way to just have the images connect through this it is fine), so the file is css.php and for the background image it connects to a parse ini file I made, all the other css works just fine as well. I am starting to think the easiest route is make another parse ini file to include in the index to reference all the other images. However, I would like to get other opinions on how I can accomplish this; there is a possibility I may need to do this with all the text as well. Any tips or tricks to suggest?
If you are going to have many websites, I would recommend using a CDN server. Basically a location for the images. For example, you will store all of your images on a domain on its own: http://images.yoursite.com or depending on your control panel. http://Server.Ip.com/~username/images Code (markup): Then in your website, you would not need to parse an INI file, all of your images will be static and you only need to know the location of the CDN url. So you would replace this: <img src="<?php echo $headerSearchImage;?> /> Code (markup): to: <img src="<?php echo $cdnUrl;?>/header_search.png" /> Code (markup): My recommendation is based on the following reasons: - Your websites will not have to constantly parse the same file, or even using a cache system for it. - Let's say your websites become famous and you need to add additional server, it is much easier (depending on which CDN service you use) to add more server with no configurations needed. - As you add more images, you won't need to update the file/reload cache every time.
[SOLVED] Do not worry, my theory worked. Used an include to target a new ini file I made named a few values with them equaling the bilder (image) extension then gave the include it's own variable and echoed out the value where the images were needed. We are talking maybe six bilder's, CDN would be over kill and un-necessary. The load time seems to have no real change.