FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » how to change old ereg?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: how to change old ereg? [message #181957 is a reply to message #181937] Fri, 28 June 2013 08:38 Go to previous messageGo to previous message
astrid.kuhr is currently offline  astrid.kuhr
Messages: 5
Registered: June 2013
Karma:
Junior Member
Hello!

First all error-messages have gone now.
But now there is one coming back:

Notice: Undefined offset: 6 in /var/www/html/phpweather/phpweather.php on line 446

Notice: Undefined offset: 7 in /var/www/html/phpweather/phpweather.php on line 447

elseif (preg_match('#^(VC)?' . /* Proximity */
'(-|\+)?' . /* Intensity */
'(MI|PR|BC|DR|BL|SH|TS|FZ)?' . /* Descriptor */
'((DZ|RA|SN|SG|IC|PL|GR|GS|UP)+)?' . /* Precipitation */
'(BR|FG|FU|VA|DU|SA|HZ|PY)?' . /* Obscuration */
'(PO|SQ|FC|SS)?$#', /* Other */
$part, $regs)) {
/*
* Current weather-group.
*/
$decoded_metar['weather'][] =
array('proximity' => $regs[1],
'intensity' => $regs[2],
'descriptor' => $regs[3],
'precipitation' => $regs[4],
'obscuration' => $regs[6], /* line 446 */
'other' => $regs[7]);

}

I tried with several delimiters, but the error is there.
How can I get it work?

Regards, Astrid
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FORMS, validating mail was sent
Next Topic: $referrer = $_SERVER['HTTP_REFERER'] echo
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 01:54:14 GMT 2024

Total time taken to generate the page: 0.05029 seconds