Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
kako citati neku informaciju sa sajta - php

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
File



Joined: 05 Apr 2006
Posts: 64
Location: HR

PostPosted: 05.04.2006 17:17    Post subject: kako citati neku informaciju sa sajta - php Add user to your forum ignore list Reply with quote

Ovako, trebao bih napraviti neku skriptu za php, kako bih sa neke stranice (primjer: iskon.hr) citao temperaturu u zg te prikazao na svojoj stranici.

Znam za onaj sajt sa temperaturama, ali mi ne odgovara njihov banner, vec ovako bih volio.

Hvala!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 05.04.2006 21:50    Post subject: Add user to your forum ignore list Reply with quote

Nije mi jasno - od kuda misliš dobivati informaciju temperature: sa toplomjera (highly unlikely, sa tvojim iskustvom php-a) ili sa neke stranice?

Ako je sa neke postojeće stranice - sa koje? Daju li feed za temperature? Daju li bilo kakav XML, ili samo HTML?

Last edited by Sulien on 06.04.2006 13:02; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
File



Joined: 05 Apr 2006
Posts: 64
Location: HR

PostPosted: 05.04.2006 23:26    Post subject: Add user to your forum ignore list Reply with quote

sa stranice, recimo http://www.radio-ilok.hr prognoza vremena.
Kako sada citati s tog sajta i prenjeti na moj?

znam jako malo o php-u ali ide.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
les



Joined: 25 Oct 2004
Posts: 370

PostPosted: 06.04.2006 01:48    Post subject: Add user to your forum ignore list Reply with quote

I oni vuku podatke sa druge stranice. http://vrijeme.hr/metpost.html sadrži popis meteo stanica u Hrvatskoj. Odabirom određene stanice dobiju se trenutni podaci (npr.http://vrijeme.hr/ZAGREB.html ).
Problem je sad naravno izvuć podatke iz html-a - da bi to napravio moraš ipak znat nešto više php-a od "jako malo" razine... Potrebno je parsat html, podatke koji ti trebaju negdje spremiti (u neki file, bazu...),te ih čitat onda po potrebi van i prikazivat na stranici.
Stvari možeš "komplicirat" po želji i u preuzimanju i u prikazu podataka - ima puno varijacija na temu.
Stvar nije sasvim jednostavna ali nije opet ni tako strašno - sve ovisi koliko kužiš php...
Back to top
View user's profile Send private message Send e-mail
File



Joined: 05 Apr 2006
Posts: 64
Location: HR

PostPosted: 06.04.2006 16:23    Post subject: Add user to your forum ignore list Reply with quote

znaci to nije bas jednostavno.
a recimo sa iskona, ili drugih site-ova?

hvala!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group