I've created a script to parse through a data file which contains coma
separated fields of data. The script works on Apache, however when I run it
on under Windows (running PHP as a CGI) the script produces an Undefined
offset notice. What is strange about this notice is that the line of code
I've created a script to parse through a data file which contains coma
separated fields of data. The script works on Apache, however when I run it
on under Windows (running PHP as a CGI) the script produces an Undefined
offset notice. What is strange about this notice is that the line of code
Chris Williams wrote:
The first and last lines contain carriage returns. The second or middle line
contains sample data.
The script that reads and parses the data is:
$countLines = fopen(data.txt, r);
while (!feof($countLines))
{
$newLine = fgets($countLines, 1024);
echo line length:
I don't believe the disputed line of script is being executed because just
before that line I include the following print statement,
echo array size: . count($zip_forward) . ID: $location_idbr;
which does not get executed when my conditional fails.
Right you are on the error reporting, I
4 matches
Mail list logo