I am sure this is pritty simple but I need some assistance.
I have a php script that reads a file from linux with lines of text in as follows
Code: Select all
1.24.64.1 0.0.0.0 255.255.255.255 dsl2
0.0.0.0 0.0.0.0 0.0.0.0 dsl2Here is a exampel of my code :
Code: Select all
$readfile = file("/tmp/test3");
for ($k=0; $k<=count($readfile)-1; $k++) {
$fields = split("\t",$readfile[$k]);
print(" $fields[0] <br>");