php.lv forumi: LR Banka un Laika zinjas ;))) - php.lv forumi

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

LR Banka un Laika zinjas ;))) ...

#16 User is offline   sofTKiller 

  • Māceklis
  • Pip
  • Group: Reģistrētie lietotāji
  • Posts: 26
  • Joined: 2004.08.30

Posted 2004.10.03 14:12

Taa nu es te sho to atradu ;)
Nu luuk dazhi grafiskie varianti laika zinjaam Riigaa:

Quote

<a href="http://www.gismeteo.ru/etowns/26422.htm"><img alt="GISMETEO.RU" src="http://einformer.gismeteo.ru/26422-9E.GIF" border=0 width=120 height=60></a>

Quote

<a href="http://www.gismeteo.ru/etowns/26422.htm"><img alt="GISMETEO.RU" src="http://einformer.gismeteo.ru/26422-10E.GIF" border=0 width=120 height=60></a>

Quote

<a href="http://www.gismeteo.ru/etowns/26422.htm"><img alt="GISMETEO.RU" src="http://einformer.gismeteo.ru/26422-11E.GIF" border=0 width=120 height=60></a>

Quote

<a href="http://www.gismeteo.ru/etowns/26422.htm"><img alt="GISMETEO.RU" src="http://einformer.gismeteo.ru/26422-6E.GIF" border=0 width=100 height=100></a>

Nu tur to variantu daudz... pieliku normaalaakos
Ja ir vajadziibas peec texta variantiem, tad luuk:

Quote

<script> var gminform_fc="0000F0", gminform_bc="FFFFFF"; </script>
<script language="JavaScript" src="http://informer.gismeteo.ru/text/26422-1.JS"></script>

Quote

<script> var gminform_fc="0000F0", gminform_bc="FFFFFF"; </script>
<script language="JavaScript" src="http://informer.gismeteo.ru/text/26422-2.JS"></script>

Taa nu ja kaads grib zinaat laika zinjas peec 10 dienaam, tad skat. zemaak:

Quote

<a href="http://www.gismeteo.ru/towns/26422.htm"><img alt="GISMETEO.RU: график температуры на 10 дней для г. Рига" src="http://informer.gismeteo.ru/graph/G26422.GIF" border=0 width=234 height=120></a>

Quote

<a href="http://www.gismeteo.ru/towns/26422.htm"><img alt="GISMETEO.RU: график температуры на 10 дней для г. Рига" src="http://informer.gismeteo.ru/graph/G26422-1.GIF" border=0 width=234 height=120></a>

Quote

<a href="http://www.gismeteo.ru/towns/26422.htm"><img alt="GISMETEO.RU: график температуры на 10 дней для г. Рига" src="http://informer.gismeteo.ru/graph/G26422-2.GIF" border=0 width=234 height=120></a>


Nu tas ir it kaa viss B)

#17 User is offline   S_K 

  • Māceklis
  • Pip
  • Group: Reģistrētie lietotāji
  • Posts: 41
  • Joined: 2003.06.05

Posted 2004.10.12 23:34

Rekur arii vieteejaa saite: http://www.meteo.lv/...iga_grafiks.jpg
tikai, buutu ar php darbinjsh nolasiit ik peec 12 stundaam attieciigus graadus un tad jau saveidot beigaas smuku mazu banneriiti

#18 User is offline   Klez 

  • Programmēšanas meistars
  • PipPipPipPip
  • Group: Reģistrētie lietotāji
  • Posts: 1,911
  • Joined: 2003.11.09

Posted 2005.01.03 15:10

http://www.oto.lv/weather_index.php
no shejienes es caur fopen ievaacu lapu un tad apstraadaaju rezultaatus ....

#19 User is offline   laacz 

  • Administrator
  • PipPipPip
  • Group: Administratori
  • Posts: 181
  • Joined: 2003.02.12

Posted 2005.01.03 16:17

Klez, on 2005. gada 03. Jan 16:10, said:

http://www.oto.lv/weather_index.php
no shejienes es caur fopen ievaacu lapu un tad apstraadaaju rezultaatus ....
View Post


Zinām mēs to, kāda metode tiek izmantota, lai rakstītu paredzamos laika apstākļus iekš oto elvē :)

#20 User is offline   kirils 

  • php kodējs vairāk kā 10 gadus
  • PipPip
  • Group: Reģistrētie lietotāji
  • Posts: 67
  • Joined: 2004.10.12

Posted 2005.01.03 22:16

hu mees zinam. pastaasti! :)

man piem tiek izmantota ieprieksheejaa gada sakariiba:
panjem dazhas dienas ieprieksh + shodien temperatuuru, atrod pagaajushaa gaga logfailos peec iespeejas tuvaak shim datumam taadu pashu patternu (kriitas/aug) un paskataas dienu uz priekshu. sareekjina attieciibu un dabuun graadus.

#21 User is offline   FredD 

  • Māceklis
  • Pip
  • Group: Reģistrētie lietotāji
  • Posts: 1
  • Joined: 2005.11.14

Posted 2005.11.14 10:54

View PostVenom, on 2004. gada 01. Sep 10:32, said:

Specifiskāks, bet, domājams, ātrāks piemērs:

$text=@implode('',@file('http://www.bank.lv/vk/xml.xml'));
if (!$text)
 die('Banka nav publicējusi šodienas kursus');
$text=str_replace('<Currency>','#',$text);
$text=strip_tags($text);
$text=explode('#',$text);
$els=count($text);
unset($text[0]);
$currencies=array();
while(--$els)
{
 $lines=explode("\n",trim($text[$els]));
 $currencies[trim($lines[0])]=array(trim($lines[1]),trim($lines[2]));
}
echo 'Amerikas dolāru kurss ir '.$currencies['USD'][1].' Ls par '.$currencies['USD'][0].' valūtas vienību.';
print '<pre>'.print_r($currencies,1).'</pre>';


... a ka noapalot, piemeram, uz 3 cipariem aiz komata? tagad ir 8 :) ka jau bankas .xml

#22 User is offline   rpr 

  • Daudzsološais profiņš
  • PipPipPip
  • Group: Reģistrētie lietotāji
  • Posts: 519
  • Joined: 2005.09.01

Posted 2005.11.14 11:00

paskaties funkciju fprint()

#23 User is offline   Venom 

  • Programmēšanas meistars
  • PipPipPipPip
  • Group: Moderatori
  • Posts: 1,938
  • Joined: 2003.02.18

Posted 2005.11.14 13:15

round((float)$currencies['USD'][0],x zīmju pēc komata);
There’s no place like 127.0.0.1
http://www.ofmy.info > this is the www of my info
Mr.Venom, the code & methodology optimization freak

#24 User is offline   IM24LV 

  • Daudzsološais profiņš
  • PipPipPip
  • Group: Reģistrētie lietotāji
  • Posts: 499
  • Joined: 2006.09.17

Posted 2007.02.25 10:02

emm http://www.meteo.lv/templates/weather/weat...77b&trans=1

rekur ir meteo.lv xmlis laika zinjaam :) tas ir ātrāks un p[recīzāks par ārzemnieku , tagad tik kāds profiņš varētu uzrakstīt skriptu kā izvilkt ārā no tā xmla :D

This post has been edited by IM24LV: 2007.02.25 17:23


#25 User is offline   Paulinjsh 

  • Daudzsološais profiņš
  • PipPipPip
  • Group: Reģistrētie lietotāji
  • Posts: 789
  • Joined: 2004.07.23

Posted 2007.02.25 18:48

Tikai nekur nav specene tam xmlam
Bet dzīvē viss ir savādāk..

#26 User is offline   IM24LV 

  • Daudzsološais profiņš
  • PipPipPip
  • Group: Reģistrētie lietotāji
  • Posts: 499
  • Joined: 2006.09.17

Posted 2007.02.26 15:57

specene? o.0 wtf? vai tad no tas nevar iznjemt, jo tur vislaik mainas dati...

#27 User is offline   andrisp 

  • Koda dievs
  • PipPipPipPipPip
  • Group: Moderatori
  • Posts: 8,532
  • Joined: 2005.04.12

Posted 2007.02.26 16:09

IM24LV, tu zini, kas ir specene ? Lietotšanas intrukcija, rupjiem vārdiem runājot. Tu gribi teikt, ka tu visus tos saīsinājumus, kas tajā xml, saproti ?
Mani var atrast http://apblog.lv/

#28 User is offline   bubu 

  • Koda dievs
  • PipPipPipPipPip
  • Group: Administratori
  • Posts: 9,196
  • Joined: 2004.03.16

Posted 2007.02.26 16:33

View PostIM24LV, on 2007. gada 26. Feb 15:57, said:

specene? o.0 wtf?

http://www.w3.org/XML/Schema#dev

#29 User is offline   Paulinjsh 

  • Daudzsološais profiņš
  • PipPipPip
  • Group: Reģistrētie lietotāji
  • Posts: 789
  • Joined: 2004.07.23

Posted 2007.02.26 17:10

Labāk tad izmantot http://informer.gism.../xml.html?27612
Bet dzīvē viss ir savādāk..

#30 User is offline   IM24LV 

  • Daudzsološais profiņš
  • PipPipPip
  • Group: Reģistrētie lietotāji
  • Posts: 499
  • Joined: 2006.09.17

Posted 2007.02.26 19:04

View Postandrisp, on 2007. gada 26. Feb 16:09, said:

IM24LV, tu zini, kas ir specene ? Lietotšanas intrukcija, rupjiem vārdiem runājot. Tu gribi teikt, ka tu visus tos saīsinājumus, kas tajā xml, saproti ?


aaa :D sapratyu bik savaadaak... nuu taa nu tieshaam nav nekaada probleema luuk kur ir :) (vnk pasties uz kartes un salidzini temperaturas...



/*Ainazi*/
<RIAI99PA c="-17.4" ico="skn" wind_ms="2" wind_angle="DR" visible="1" />
//Aluksne
<RIAL99MS c="-19.9" ico="skn" wind_ms="1" wind_angle="DR" visible="1" />
//Bauska
<RIBA99PA c="-20.6" ico="skn" wind_ms="1" wind_angle="DR" visible="1" />
//Daugavpils
<RIDM99MS c="-19.3" ico="mm2" wind_ms="3" wind_angle="DR" visible="1" />
/////////////nepastaav
<RIDO99MS c="" ico="" wind_ms="" wind_angle="" visible="0" />
////////////nepastaav
<GRISKANI c="" ico="" wind_ms="" wind_angle="" visible="0" />
//Gulbene
<RIGU99MS c="-18.3" ico="skn" wind_ms="2" wind_angle="DR" visible="1" />
//Jelgava
<RIJE99PA c="-21.2" ico="" wind_ms="1" wind_angle="R" visible="1" />
//Kolka
<RIKO99PA c="-9.4" ico="msn" wind_ms="5" wind_angle="R" visible="1" />
//Liep�ja
<RILP99PA c="-14.2" ico="mm2" wind_ms="4" wind_angle="R" visible="1" />
//Madona
<RIMADONA c="-19.3" ico="" wind_ms="2" wind_angle="DR" visible="1" />
//Mersraks
<RIME99MS c="-10.4" ico="msn" wind_ms="3" wind_angle="R" visible="1" />
//Priekuli
<RIPR99PA c="-17.9" ico="skn" wind_ms="1" wind_angle="R" visible="1" />
//Pavilosta
<RIPA99PA c="-14.8" ico="skn" wind_ms="3" wind_angle="ZR" visible="1" />
//Rezekne
<RIRE99MS c="-20.2" ico="" wind_ms="3" wind_angle="DR" visible="1" />
//Riga
<RIGASLU c="-14.0" ico="mm2" wind_ms="4" wind_angle="DR" visible="1" />
//Rujiena
<RIRU99PA c="-18.4" ico="skn" wind_ms="3" wind_angle="DR" visible="1" />
//Saldus
<RISA99PA c="-18.2" ico="skn" wind_ms="1" wind_angle="R" visible="1" />
//Skriveri
<RISI99PA c="-18.9" ico="skn" wind_ms="1" wind_angle="DR" visible="1" />
//Skulte
<RISE99MS c="-16.4" ico="skn" wind_ms="2" wind_angle="DR" visible="1" />
//Stende
<RIST99PA c="-18.8" ico="mm2" wind_ms="2" wind_angle="R" visible="1" />
//Ventspils
<RIVE99PA c="-13.2" ico="msn1" wind_ms="3" wind_angle="R" visible="1" />
//Ziilaani
<RIZI99PA c="-19.7" ico="skn" wind_ms="1" wind_angle="R" visible="1" />
//Zoseeni
<RIZO99MS c="-19.9" ico="skn" wind_ms="1" wind_angle="DR" visible="1" />


Share this topic:


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic