Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2006
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question get text from my other website

    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.
    Achievement provides the only real pleasure in life.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    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 Code:
    <?php include('quote.txt'); ?>
    on Website A, then on Website B you could use
    PHP Code:
    <?php include('http://www.websiteA.com/quote.txt'); ?>
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Mar 2006
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question

    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
    Last edited by ssffcc; 11-24-2006 at 09:11 AM.
    Achievement provides the only real pleasure in life.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •