[PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread Chris Williams
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

[PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread Chris Williams
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

Re: [PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread John W. Holmes
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:

Re: [PHP] Undefined offset on Windows not on Apache?

2003-11-30 Thread Chris Williams
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