View Full Version : get text from my other website

11-23-2006, 10:39 AM
say i have two websites, A and B

on websiteA index.html i have a table cell which contains a quote that i manually change regularly.

I want to write some code in my websiteB index.php that synchronizes with the index.html websiteA, displays the changes on websiteB indx.php. So that everytime i made changes to the quote on index.html websiteA, the index.php wesiteB automatically reflex the change made.

is this possible to achieve? please help.:confused:

11-23-2006, 11:04 AM
You would need to make your quote an include file meaning you would need to change your index.html page to index.php or use htaccess to make your .html pages parse as .php pages. Then you can use

<?php include('quote.txt'); ?>
on Website A, then on Website B you could use

<?php include('http://www.websiteA.com/quote.txt'); ?>

11-24-2006, 09:08 AM
thx _Aerospace_Eng_ .
Is it possible to leave the index.html on websiteA unchanged? becaus the websiteA's host doesn't support php.

btw, the quote is just a line of words, i dont want to put it into a txt file