On Monday 07 May 2001 19:37, tk wrote:
> when i echo $buffer to the screen it prints out hte content of hte file
> line by line
> if i echo $photos[i] to the screen it just prints out random numbers
> and not the content i'd expect
>
> (the code i'm using to do this is:
>
> $i = 0;
> while(!feof
try,
$photos[] = $buffer; // without $i in brackets, this means append to the end of
the array
in the loop, maybe this helps.
- Original Message -
From: "tk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 2001. május 7. 19:37
Subject: [PHP] help with fgets
> hi.
>
> i'm try
2 matches
Mail list logo