* and then Ed Lazor declared....
> It looks like you're hading in the right direction. You've grabbed an array
> of each file. Then cycle through that array and read data from each file.
> The fread function will allow you to pull data from each file line by line,
> so you can store each line in an array. Using your idea of pseudo-code:
>
> $data = array();
> $i = 1;
> foreach ( file ) {
> $n = 1;
> fp = fopen
> while ($line = fread() ){
> $data[$i][$n] = $line;
> }
> }
>
> foreach ($data as $key => $line ) {
> foreach ($line as $line_number => $ip) {
> // do stuff
> }
> }
hehe, not sure i get it but im playing with it ;-) i need to see code in
action for my head to understand it. I did have one rather good though
though (i think): If i can create an array with all of the ips in order
like this
123.123.123.1 // 1st IP from machine 1
123.123.123.2 // 1st IP from machine 2
123.123.123.3 // 1st IP from machine 3
123.123.123.4 // 2nd IP from machine 1
123.123.123.5 // 2nd IP from machine 2
123.123.123.4 // 2nd IP from machine 3
etc...
then i would have *exactly* what the application needs. Does that make
the problem any easier?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Nick W
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php