Forum Moderators: coopster
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 Code:
<?php
$rssfile = file_get_contents($_GET['rss']);
echo $rssfile ;
?>
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
Anyway If you are pulling a file from another server It will increase the bandwidth of your server since you have to go out and get the contents.
If you have an idea that the external resource is not going to change every time someone looks at it you could employ some caching on the remote file. Basically you grab the file, stash it in a folder or database, then give it a timestamp and check the timestamp before displaying the contents. An example: if the timestamp is less than 24 hours old use the cached contents else grab the new contents from the appropriate feed location.
Hope that gets you in the right direction.
Regards,
Brandon