if the lines are exact duplicates, then you could open the file with PHP or
Perl, then scan through it, line by line, each time throwing the line in the
next cell of an array....then you should be able to sort by the values in
those cells, and after you have that, deleting duplicates would be
simple.....
-----Original Message-----
From: Richard [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 22, 2001 12:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Remove duplicates, as long as you have it.
That removes instances in an array, I am talking about a file. Each line
contains non-duplicate words, but the lines are mixed and duplicated,
perhaps trippled.
- Richard
""Taylor, Stewart"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Have you tried the array_unique function
> http://www.php.net/manual/en/function.array-unique.php
>
>
> -Stewart
>
> -----Original Message-----
> From: Richard [mailto:[EMAIL PROTECTED]]
> Sent: 22 April 2001 12:36
> To: [EMAIL PROTECTED]
> Subject: [PHP] Remove duplicates, as long as you have it.
>
>
> Greetings.
>
> I have this link file which has been active for quite a while, but the
> problem is that when I used a "admin" program to manage the links
> (admin.php) it kinda wrote the file multiple times, which means that it
has
> sorted the file and added multiple instances of the lines.
>
> How I managed to create it? Well, by using the free
linkadd/linkmanager
> PHP script. Anyhow, what I need is how can I remove duplicates that are
> sorted in arrays? Or does anyone of you has such a script or C++ program,
so
> you could sort the file for me or something?
>
> Thanks
> - Richard
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]