Posted by Double Echo on 02/12/06 21:55
You're right!!
I'm smacking myself--too much coding!!
I changed it on my other progs but forgot to on this one.
Thanks!
rlee0001 wrote:
> Echo Echo,
>
> At the beginning output $file. For some reason the file is reading
> itself as input. If you are using:
>
> php myprog.php infile.csv
>
> ...on the command line then I think you should be trying to get
> "infile.csv" (or whatever) using $argv[1] not $argv[0]. Otherwise you
> are passing the files own source to itself and the line
>
> print "$data[$c]<br> \n" ;
>
> Is causing the source to print.
>
> -Robert
>
Navigation:
[Reply to this message]
|