well
we have some forex data which are updated every day.
We are ranking very well for it in google...now .We want other sites to be able to include our forex data in their website as well(along with link to us)
Forex data is stored in mysql database and fetched using php in tabular form
The easist way we can think of is make other site include our forex_other.php file which include forex data only in tabular from...
<?php include('http://site.com/file.php') ?>
But this way problems are.. (using includes)
- many host doesnt allow it...or disable such functions
- we may run out of bandwidth...
- the users site may be some what slow while fetching data(opening homepage,if there is external include..)
- if our site is down the user may not get data
- and user may not be convinced about security problem while including files...
so...considering these problems ...are there still way out...or recommended/safe way doing thing using this way...
publisher wise it is easist so would be great to follow it if there were not problems...
plan B
if that are problems then ...(or it cannot be solved that way..)
we have thought of rss...
but problems with rss are
our rss need to be peculiar..in the sense that ...
we have
date
countryname rates
country1 rate1
country2 rate2
....
link
so we are planning to make rss this way
PHP Code:
while ($row = mysql_fetch_array ($result, MYSQL_ASSOC)) {
$xml_output .= "\t<forex>\n";
$xml_output .="<countryname>$row[country_name]}</countryname>";
$xml_output .="<rate>{$row[rate]}</rate>";
$xml_output .= "\t</forex>\n";
}
and so on
so will it validate as normal rss?...are there any problems doing this way..not using standard ...title. link....description way...?(off course with all <?xml header and all..)
our plan is to write xml file(rss) and use script automatically to upload rss feed to some thirdparty server..
so that
- there is not any load in our server+
- if our server is down ,it is still accessable...
(and keep our brand and link there..)
so are there any problems doing this way?
can we use script to automatically upload rss file to third part server...?
(or what can be other way...)
providing xml format seems be much vunerable to screen scraping..using ...curl and other php functions...how can we address that problem?
and
do we need custom rss reader?...or do we need to write custom rss reader to read our feed...?(with countryname...rate..and tables..)
please provide us a way...and suggestion...
thanks
Bookmarks