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 5 of 5
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts

    File Get Contents

    Get contents for exchange.
    How can I arrange all the words in the line, can someone help me with code?

    The code is xml placed on asp document:
    exchange.asp
    Code:
    <curencyexchange>
    −
    <exchange>
    <id>978</id>
    <expr>MKD</expr>
    <exch>EUR</exch>
    <amount>1</amount>
    <value>61.4129</value>
    </exchange>
    −
    <exchange>
    <id>036</id>
    <expr>MKD</expr>
    <exch>AUD</exch>
    <amount>1</amount>
    <value>31.0213</value>
    </exchange>
    −
    <exchange>
    <id>124</id>
    <expr>MKD</expr>
    <exch>CAD</exch>
    <amount>1</amount>
    <value>38.3927</value>
    </exchange>
    −
    <exchange>
    <id>208</id>
    <expr>MKD</expr>
    <exch>DKK</exch>
    <amount>100</amount>
    <value>824.3564</value>
    </exchange>
    −
    <exchange>
    <id>392</id>
    <expr>MKD</expr>
    <exch>JPY</exch>
    <amount>100</amount>
    <value>50.1739</value>
    </exchange>
    −
    <exchange>
    <id>578</id>
    <expr>MKD</expr>
    <exch>NOK</exch>
    <amount>100</amount>
    <value>703.0670</value>
    </exchange>
    −
    <exchange>
    <id>752</id>
    <expr>MKD</expr>
    <exch>SEK</exch>
    <amount>100</amount>
    <value>541.4501</value>
    </exchange>
    −
    <exchange>
    <id>756</id>
    <expr>MKD</expr>
    <exch>CHF</exch>
    <amount>100</amount>
    <value>4148.1189</value>
    </exchange>
    −
    <exchange>
    <id>826</id>
    <expr>MKD</expr>
    <exch>GBP</exch>
    <amount>1</amount>
    <value>69.8112</value>
    </exchange>
    −
    <exchange>
    <id>840</id>
    <expr>MKD</expr>
    <exch>USD</exch>
    <amount>1</amount>
    <value>48.1179</value>
    </exchange>
    −
    <exchange>
    <id>191</id>
    <expr>MKD</expr>
    <exch>HRK</exch>
    <amount>100</amount>
    <value>821.7086</value>
    </exchange>
    </curencyexchange>
    PHP code:
    PHP Code:
    <?php $url file_get_contents('http://www.site.com/exchange.asp');
    echo 
    $url?>

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    What do you want to do? Describe the situation and what you want to accomplish.

  • #3
    New Coder
    Join Date
    Oct 2006
    Posts
    42
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i want any content in kurs.asp to take out from it and order.

    for example:
    EUR 1 61.41
    USD 1 48.12

  • #4
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    i want any content in kurs.asp to take out from it and order.


    Care to phrase that in a way that makes sense to someone who doesn't know what you are trying to do?

  • #5
    Regular Coder
    Join Date
    Aug 2008
    Location
    Northern Ireland
    Posts
    167
    Thanks
    12
    Thanked 6 Times in 6 Posts


  •  

    Posting Permissions

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