SitePoint Sponsor

User Tag List

Results 1 to 24 of 24

Threaded View

  1. #1
    SitePoint Wizard
    Join Date
    Jun 2005
    Posts
    1,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP To Insert text from another domain

    Hi all,

    From another thread where I thankfully received some excellent help from some of the other members :

    http://www.sitepoint.com/forums/show...16#post3061116

    or :

    http://tinyurl.com/fuqyf

    I just need a bit more help if possible.

    I think I've gone wrong somewhere, it seems that the rates will only update, if I upload currency.txt ? ;-(

    It's now important that one domain gets it's info from another one, so that :

    As an example, in www.130605.com/currency/index.php the currency is displayed ;

    and that page gets its calculations from www.010805.com/currency/currency.txt

    which gets its calculations from www.010805.com/currency/get_rates.php


    Have I got it correct that the cron job :

    php -q /home/practice/www/currency/get_rates.php > /dev/null

    needs to be on the www.010805.com domain ? (which I would prefer really)


    Also, in the context of the above text and excellent help from the others here, could anyone please fill in/confirm what the chmod's for the bits below should be please ?

    currency.txt - 666 ? The folder that contains currency.txt - ?

    get_rates.php - ? The folder that contains get_rates.php - ?

    index.php - ? The folder that contains index.php - ?

    Any help really appreciated.

    All the best.

    Dez.
    Last edited by Dez; Sep 25, 2006 at 06:46.


Bookmarks

Posting Permissions

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