Hello, I am currently doing a project. The project is i will serve flash rss reader to users. In flash there are security restrictions and one can't load xml file directly from another website. So i prepared to used PHP to load xml files from another server. And this also worked well !. My php file contains the following code <?php $rssfile = file_get_contents($_GET['rss']); echo $rssfile ; ?> PHP: My question is when i load and xml file will it increase my server bandwidth ? When thousands of people use my rss reader, thousands of rss files will use my php file and load their required xml file. When this happens will there be an increase in my server bandwidth ? If it will increase suggest anyother php scripts which will fullfill my needs. Thanks
When googling, most results say yes, so I presume so. I don't think there is any different way to do this without using any bandwidth. cUrl would be another option, but that also eats bandwidth.
Thanks for your suggestion . After reading your replies i decided to host the php file on a free hosting server . I came across Zymic, X10Hosting and many other but they are not supporting these kinds of scripts. They say "function disabled by the server". I googled to find any reliable and free hosting server but i was not. Please post any links about any free hosting server which will fulfill my needs. Thanks in advance !!
You can always use Dreamhost, which gives you 'unlimited' bandwidth. I don't believe it's unlimited, but I already used up to 400GB bandwidth with them and they aren't really expensive.
Wouldn't it be possible to reduce bandwidth-usage here? If you load the XML into a database, and then lookup info there for generating the RSS-feed? The RSS-feed itself isn't continous - it updates at intervals you can set in the RSS-code, and therefore it will won't create new feed items everytime someone requests the RSS-file - it will just send the current status each time, until new content is fetched (if I've understood this correctly). Anyhow, caching the content, and for that matter, the RSS-feed, would greatly decrease bandwidth usage, I would imagine.
Most free or paid web hosts will not look kindly at you signing up just to do this. Free web hostings have file_get_contents disabled by default because it is a huge resource hog and a lot of times it will run up the cpu usage on a server, because the server no longer is a server. It turns into a browser of sorts. Before signing up any place you should email or live chat with someone either in sales or support and ask if you can do this. So, at least you will have it in writing.