Stumbled upon such a puzzle.

There is a file with array() ;

PRMER:

 array( "TICKET"=> array( "BTC"=>array( "USD"=>array( "price"=>"6975", "low"=>"6320", "high"=>"7101" ), "RUB"=>array( "price"=>"459671", "low"=>"430522", "high"=>"486197" ), ), "LTC"=>array( "USB"=>array( "price"=>"671", "low"=>"640", "high"=>"692" ), "RUB"=>array( "price"=>"459671", "low"=>"430522", "high"=>"486197" ), ), ), ); 

You need to implement the link in such a way that it displays only a certain currency pair on the page.

EXAMPLE OF LINKS: https://api.cryptonator.com/api/ticker/btc-usd

Where btc-usd is a currency pair. And when you go to this link on the page, information about this currency pair is displayed.

An example of displaying information on the page can be found here.

PICTURE EXAMPLE

And how do I implement such a link and how, please help.

  • I do not know anything about the web, but I think that this link is not real, it should be, but like a shortened and more understandable look. In fact, there is some kind of php script that gets btc-usd as an argument - Flippy
  • mod_rewrite in your hands, if the Apaches, or analogues on other servers. Make a rule for redefining the request, so that the desired parameter is passed to the script. Well, after that the file incl and the extraction of the necessary data - teran

0