Well, its what I want so I could do a foreach array like this and print out
the ips in a table:
foreach($ips as $value) {
$value = trim($value);
$domain = gethostbyaddr($value);
echo "
3
$value
$domain ";}
echo '
';
It works!
On 7/2
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave W wrote:
> I figured it out before, but I didn't hit reply all. I used files() and
> newlines to create it. Would using explode be a more reliable way?
I assume you mean the file() function, not files(). The only problem
with doing it that way is
I figured it out before, but I didn't hit reply all. I used files() and
newlines to create it. Would using explode be a more reliable way?
On 7/23/06, Stut <[EMAIL PROTECTED]> wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave W wrote:
> Currently, here is my code:
>
>$file = 'ip.tx
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Dave W wrote:
> Currently, here is my code:
>
>$file = 'ip.txt';
>$fh = fopen($file, 'r');
> $theData = fread($fh, filesize($file));
> fclose($fh);
> $ips = array($theData);
>
...
>
> Since it's a numeric array, I shouldn't need quotes around