🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #219787

Re: usuwanie powtorzen z pliku

#219787
From: Przemysław Rachwał
Date: Sun, 19 Jul 2009 18:06
22 lines
1351 bytes
Lemat wrote:
> Lech Dubrowski wrote:
> 
>> jak usunac powtrzenia wierszy z pliku?
> 
> $d=file('jakis.plik.txt');
> $d=array_unique($d);
> 

jak pliczek jest zbyt wielki to się pamięć skończy

może lepiej importować do jakiegoś SQL-a i zrobić distinct-a

a jak masz Windows to można to zrobić w prosty sposób JET-em, ale to 
inna bajka


-- 
Przemek

"Non sunt multiplicanda entia sine necessitate"
http://vbamania.blogspot.com
Technical Details
Message-ID: <h3vnbl$nn6$1@inews.gazeta.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
References: <h3vcto$iqe$1@atlantis.news.neostrada.pl> <h3vhl7$a3c$1@nemesis.news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!not-for-mail
From: Przemysław Rachwał <przemyslaw.rachwal@gmail.com>
Newsgroups: pl.comp.lang.php
Subject: Re: usuwanie powtorzen z pliku
Date: Sun, 19 Jul 2009 20:06:45 +0200
Organization: "Portal Gazeta.pl -> http://www.gazeta.pl"
Lines: 22
Message-ID: <h3vnbl$nn6$1@inews.gazeta.pl>
References: <h3vcto$iqe$1@atlantis.news.neostrada.pl> <h3vhl7$a3c$1@nemesis.news.neostrada.pl>
NNTP-Posting-Host: 91.123.160.178
Mime-Version: 1.0
X-Trace: inews.gazeta.pl 1248026805 24294 91.123.160.178 (19 Jul 2009 18:06:45 GMT)
X-Complaints-To: usenet@agora.pl
NNTP-Posting-Date: Sun, 19 Jul 2009 18:06:45 +0000 (UTC)
X-User: prachwal
In-Reply-To: <h3vhl7$a3c$1@nemesis.news.neostrada.pl>
User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit