Cc to devel list as it can be interested also for others.
On Sun, 6 Apr 2003, Jonathan Drucker wrote:
> Well, it isnt that it doesnt work right, it is that i am not really
> sure how to get it on my site. I have it unzipped to the webroot on my
> server, but i am not sure how to get it to show up on my webpage. Is
> it a form, or a table, etc? Thanks for the help, and if the problem
> still doesnt make sense, i will try again..hehe :-)
Well, if files are in webroot and phpWeather is configured properly, you
should be able to access them and see some weathers, etc. This is
probably what did you mean with sentence, that you have test script
already working.
Now you have some different page - your homepage. You want to have
phpWeather there. It is not certain what this mean, thus there are these
three alternatives.
1. Most simple one
There is no problem to put link on your site to working phpWeather
installation. You can even link particular location. Simply bookmark
and than create link.
2. Classic one
You can take phpWeather test script code and integrate it into your
page. This is not so complicated, however your page will basically
looks like test script in phpWeather.
An example for this case can be seen here:
http://nepto.sk/specials/weather/
3. Difficult one
Since phpWeather is nicely coded using object-oriented advantages,
you can create phpWeather object and call particular methods for
metar parsing. Than you can print out any information you are
interested in giving it arbitrary design and presentation form.
An example for this case can be seen here:
http://nepto.sk/about_me/news.php?lang=en
This is my private news page, but in the right upper corner there is
a box with current weather in city where I live. Weather information
are displayed in box. That is example of arbitrary presentation form.
Now you have to choose what solution you want.
--
_/| Ondrej Jombik - ne...@ph... - http://www.nepto.sk - OJ812-RIPE
<_ \ Platon SDG - open source software development - http://platon.sk
`\| Ako sa do hory vola, tak sa zhori traktor! (c) 1999 Rattkin/MFF
'`
|