Ask a Question related to PHP Programming, Design and Development.
-
Steven #1
Undefined offset: 1
Hi All,
I am moving some php code from a Linux machine to a Windows 2000 machine
with the code belowe I get the following error :
Notice: Undefined offset: 1 in c:\inetpub\wwwroot\test.php on line 5
1) reset($kolom1);
2) while(list($cat,$lnk) = each($kolom1)){
3) kop($cat);
4) while(list($name,$href) = each($lnk)){
5) list( $name, $status) = split( '[,]',$name);
6) links($name,$href,'n',$status);
7) }
8) footer();
9) }
On the Linux server there is no problem but now on the Windows 2000 server
there is.
Anybody got a clue what could be wrong here??
Thanks!
Steven Guest
-
Offset in Columnchart
Hi, Does anyone has try the offset of Column chart? I try to make some column chart with column overlapping one another. However, the example... -
Grid Offset Possible?
Hello everyone I work at a blister packaging company and the owner asked me to create die lines for graphic cards we order. I need to use a specific... -
strrpos and offset?
Hi, I'm using PHP 4.3.4 the docs at: http://uk.php.net/manual/en/function.strrpos.php tells me that strrpos can be passed an offset as the... -
exec at offset != 0
Hi I would like to be able to simulate an exec but starting at byte N in a file (without creating a temporary file which is exec'ed later) I... -
What is an undefined offset? An undefined index?
I just switched error_reporting to ALL so I could debug my site. I got a huge page full of errors. One of the most common was that in my arrays I'm... -
Steven #2
Undefined offset: 1
Hi All,
I am moving some php code from a Linux machine to a Windows 2000 machine
with the code belowe I get the following error :
Notice: Undefined offset: 1 in c:\inetpub\wwwroot\test.php on line 5
1) reset($kolom1);
2) while(list($cat,$lnk) = each($kolom1)){
3) kop($cat);
4) while(list($name,$href) = each($lnk)){
5) list( $name, $status) = split( '[,]',$name);
6) links($name,$href,'n',$status);
7) }
8) footer();
9) }
On the Linux server there is no problem but now on the Windows 2000 server
there is.
Anybody got a clue what could be wrong here??
Thanks!
Steven Guest
-
Jason #3
Re: Undefined offset: 1
"Steven" <news@emailme.nu> wrote in message news:3f6479e1$1@news.nb.nu...
The split is failing. I don't know if this is the problem, but try changing> Hi All,
>
> I am moving some php code from a Linux machine to a Windows 2000 machine
> with the code belowe I get the following error :
>
> Notice: Undefined offset: 1 in c:\inetpub\wwwroot\test.php on line 5
>
> 1) reset($kolom1);
> 2) while(list($cat,$lnk) = each($kolom1)){
> 3) kop($cat);
> 4) while(list($name,$href) = each($lnk)){
> 5) list( $name, $status) = split( '[,]',$name);
> 6) links($name,$href,'n',$status);
> 7) }
> 8) footer();
> 9) }
>
>
> On the Linux server there is no problem but now on the Windows 2000 server
> there is.
> Anybody got a clue what could be wrong here??
>
> Thanks!
>
>
>
line 5 to
list( $name, $status) = split( ',',$name);
Jason Guest
-
Jason #4
Re: Undefined offset: 1
"Steven" <news@emailme.nu> wrote in message news:3f6479e1$1@news.nb.nu...
The split is failing. I don't know if this is the problem, but try changing> Hi All,
>
> I am moving some php code from a Linux machine to a Windows 2000 machine
> with the code belowe I get the following error :
>
> Notice: Undefined offset: 1 in c:\inetpub\wwwroot\test.php on line 5
>
> 1) reset($kolom1);
> 2) while(list($cat,$lnk) = each($kolom1)){
> 3) kop($cat);
> 4) while(list($name,$href) = each($lnk)){
> 5) list( $name, $status) = split( '[,]',$name);
> 6) links($name,$href,'n',$status);
> 7) }
> 8) footer();
> 9) }
>
>
> On the Linux server there is no problem but now on the Windows 2000 server
> there is.
> Anybody got a clue what could be wrong here??
>
> Thanks!
>
>
>
line 5 to
list( $name, $status) = split( ',',$name);
Jason Guest
-
Jason #5
Re: Undefined offset: 1
"Jason" <jsumner1@cfl.rr.com> wrote in message
news:yZ_8b.19261$kX.7484@twister.tampabay.rr.com.. .server> "Steven" <news@emailme.nu> wrote in message news:3f6479e1$1@news.nb.nu...> > Hi All,
> >
> > I am moving some php code from a Linux machine to a Windows 2000 machine
> > with the code belowe I get the following error :
> >
> > Notice: Undefined offset: 1 in c:\inetpub\wwwroot\test.php on line 5
> >
> > 1) reset($kolom1);
> > 2) while(list($cat,$lnk) = each($kolom1)){
> > 3) kop($cat);
> > 4) while(list($name,$href) = each($lnk)){
> > 5) list( $name, $status) = split( '[,]',$name);
> > 6) links($name,$href,'n',$status);
> > 7) }
> > 8) footer();
> > 9) }
> >
> >
> > On the Linux server there is no problem but now on the Windows 2000changing>> > there is.
> > Anybody got a clue what could be wrong here??
> >
> > Thanks!
> >
> >
> >
> The split is failing. I don't know if this is the problem, but tryLet me be more specific...the split isn't exactly failing, but it's not> line 5 to
>
> list( $name, $status) = split( ',',$name);
>
>
>
>
giving the list() 2 elements to work with.
Jason Guest
-
Jason #6
Re: Undefined offset: 1
"Jason" <jsumner1@cfl.rr.com> wrote in message
news:yZ_8b.19261$kX.7484@twister.tampabay.rr.com.. .server> "Steven" <news@emailme.nu> wrote in message news:3f6479e1$1@news.nb.nu...> > Hi All,
> >
> > I am moving some php code from a Linux machine to a Windows 2000 machine
> > with the code belowe I get the following error :
> >
> > Notice: Undefined offset: 1 in c:\inetpub\wwwroot\test.php on line 5
> >
> > 1) reset($kolom1);
> > 2) while(list($cat,$lnk) = each($kolom1)){
> > 3) kop($cat);
> > 4) while(list($name,$href) = each($lnk)){
> > 5) list( $name, $status) = split( '[,]',$name);
> > 6) links($name,$href,'n',$status);
> > 7) }
> > 8) footer();
> > 9) }
> >
> >
> > On the Linux server there is no problem but now on the Windows 2000changing>> > there is.
> > Anybody got a clue what could be wrong here??
> >
> > Thanks!
> >
> >
> >
> The split is failing. I don't know if this is the problem, but tryLet me be more specific...the split isn't exactly failing, but it's not> line 5 to
>
> list( $name, $status) = split( ',',$name);
>
>
>
>
giving the list() 2 elements to work with.
Jason Guest



Reply With Quote

