Re: [php] undefined offset?
| From: | Chris Lee | Date: | Fri, 03 Aug 2001 14:31:27 +0000 |
| Subject: | Re: [php] undefined offset? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61130@lists.php.net to get a copy of this message | ||
<?php
$test[0] = 0;
$test[1] = 1;
echo $test[8];
?>
you never defined test[8] thats why its undeined. more likley then not check
in your php.ini file, i bet you have
warning = ~E_WARNINGS E_ALL;
in your linux box and
warning = E_ALL;
in your win box.
I like all warnings and errors showing, personal opinion.
--
Chris Lee
lee@mediawaveonline.com
"Johnny Nguyen" <johnny@zugara.com> wrote in message
news:MLEOIBNOMCMGHDKJLMCAGEAHCBAA.johnny@zugara.com...
> Can somebody explain to me the undefined offset warning?
>
> Warning: Undefined offset: 8 in D:\filepath\CalendarClass.php on line 387
>
> It was working fine on linux, but when i moved to iis 5.0 running php i
got
> this error.
>
> Regards,
> Johnny Nguyen
>