I Have now got it kinda working, but not fully, i changed something i shouldn't have, but fixed that.. //create new string containing data for selected place preg_match("|$placename.*?\\n\\n.*?\\n\\n|s", $content, $temp); (i had it //create new string containing data for selected place preg_match("|$canberra.*?\\n\\n.*?\\n\\n|s", $content, $temp); by accident), but as you see it doesn't get all the forecast.... Mildura (works) http://www.canberra-wx.com/bomonster/bomonster01.php Canberra (kinda works) http://www.canberra-wx.com/bomonster/bomonster1.php
The Problem now is displaying the full description of the forecast and the forecast temps for the next few days...also noticed that the Mildura Forecast is not fully displayed, it is missing 1 work at the end of the forecast description... So How do i change the php to display the Whole description and the next few days of temps. Remember the layout of the source of the info is different http://www.bom.gov.au/cgi-bin/wrap_fwo.pl?IDV17001.txt is the Mildura forecast... http://www.bom.gov.au/cgi-bin/wrap_fwo.pl?IDN10035.txt is the Canberra/A.C.T Forecast that i want to use. -- Cheers --------------------------------------------------------- Simon Angell Canberra ACT www.canberra-wx.com --------------------------------------------------------- Member of: Australian Severe Weather Association. www.severeweather.asn.au --------------------------------------------------------- This email is virus free. Scanned before leaving my mailbox using Norton Antivirus 2002 for Win2k Scanned with the latest definition File. "Simon Angell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi. > > I am having trouble with a PHP script. I am not the one who made this and my > knowledge on php is very little. > I came across this php script www.canberra-wx.com/bomonster/bomonster01.php > which is weather forecasting for a place called Mildura. > The file that the PHP gets its info from is here... > http://www.bom.gov.au/cgi-bin/wrap_fwo.pl?IDV17001.txt and if you look down > the page you will see the Mildura forecast that the PHP draws its info > output from. > > My Problem is that i want it to work for this file... > http://www.bom.gov.au/cgi-bin/wrap_fwo.pl?IDN10035.txt and i cant work out > how to get it going. > i have got this far www.canberra-wx.com/bomonster/bomonster1.php (look at > the code, the actual outpot doesn't work..thats my problem). The part I want > the PHP to do its info output is from A.C.T FORECAST (like from the Mildura > in IDV17001.txt) > > Any help on how to get it to work would be great. > > Cheers > --------------------------------------------------------- > Simon Angell > Canberra ACT > www.canberra-wx.com > --------------------------------------------------------- > Member of: > Australian Severe Weather Association. > www.severeweather.asn.au > --------------------------------------------------------- > This email is virus free. > Scanned before leaving my mailbox > using Norton Antivirus 2002 for Win2k > Scanned with the latest definition File. > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php