PHP Extraction of WD Avg/Ext HTM Files

The problem is somewhere in your rapporter.php form date selection code

you have


$breport = "scripts/rapporter/dagligrapporter.php?date=$date<"; 

try this:


$breport = "scripts/rapporter/dagligrapporter.php?date=$date"; 

Hi Mike

Its working now - thank you very much - amazing you can point out the errors so fast.

Have a nice day

Best regards,

Henrik

Hi Mike

Thanks for your PM

Hi Mike

Its working - but unfortunately my "M


rapporter.php.txt (8.49 KB)

[quote author=jwwd link=topic=28547.msg250640#msg250640 date=1207860982]
Hi Mike

Thanks for your PM

Hi Mike

Its working - but unfortunately my "M

M

[quote author=jwwd link=topic=28547.msg250644#msg250644 date=1207861884]
M

I am attempting to incorporate this script but am getting an error I do not understand.

The test page is located at:

http://www.k3jae.com/wxhistory-test.php

Error reported is:
Warning: fopen(www.k3jae.comNovember2008.htm) [function.fopen]: failed to open stream: No such file or directory in /home6/kthrjaec/public_html/AvgExtract.php on line 102

Date format is incorrect as well. Can someone direct me to my coding error?

It appears that you’ve found the problem … it’s looking nice now.

  • Jim

Honestly and with all respect Jim, no I have not found my problem. I went to bed and woke up and see now data is printing - except Daily Rain Totals - the heading prints but no data. I found that ASTOUNDING because after 45 minutes of receiving the previously listed error I wake up showing at least data is printing.

{Modify this post to update information}
Since this post I have continued to play around and “almost” have it. Only problem I have now and am clueless how to resolve is the following:

Page loads fine with the date, inside my template as it should, CSS values working. Test page at : http://www.k3jae.com/sample-test.php

  • There is a very large gap between the selection box and the beginning of the actual data. Cannot decipher why this is.
  • There are no links to the 24 hour daily charts. Those charts do exist as evident by running original page VIEW: http://www.k3jae.com/wxhistory.php.

Any assistance here would be greatly appreciated. I have reached the max of my PHP knowledge (which is limited to say the least) and am unsure how to resolve the couple of problems as listed above.

Hi
this is my “Weather Display / PHP / AJAX Website Template” http://www.lidodarsena.it/meteolive/praiaamare

I have a problem: I can not see the weather data http://www.lidodarsena.it/meteolive/praiaamare/wxhistory.php
What do you think can be the problem?

Best regards,
Max

Is WD uploading the Monthly Avg/Ext HTM Files files?
Are they in English?
I do not see January2009.htm on your site.

Hi Mike
are in the directory … /meteolive http://www.lidodarsena.it/meteolive/January2009.htm

Thanks for your help
Max

Max, inside wxhistory you should set the webdir setting like this:

You may have another problem if your January2009.htm is not in English

# Location of where the data files are located.
# You may need to change this and it must end with a slash.
# ./ is used if the files are in the same folder as your page with the dropdown list
$webdir = '../';

webdir is $webdir = ‘…/’;

You may have another problem if your January2009.htm is not in English

January2009.htm is not in English :frowning:

Hi
resolved :lol: Its working now http://www.lidodarsena.it/meteolive/praiaamare/wxhistory.php
recreate the web Av/ext page in English by WD

thank you
Best regards,
Max

Do consider biterscripting ( http://www.biterscripting.com ) for automatically parsing and generating web pages from/into weather statistics and weather data. Even weather alert RSS feeds can be parsed and created with it.

In general, biterscripting tends to be easy to use and easy to learn when it comes to correlating weather data into/from web pages. The good thing is - the scripts you develop - can run directly as a part of your web server, and can access web data at run time.

Email me if you need help developing any specific scripts. Keep up the good work.

P