🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

adresy

#1824
From: sinuHe
Date: Thu, 30 Aug 2001 21:55
19 lines
1405 bytes
Mam taki kawalek kodu:
     
     $adresy=file("adresy.txt");
     for($i="0";$i<sizeof($adresy);$i++){
	      if($adresy[$i]=="$adres"){
		       echo($i."=".$adresy[$i]." -rozpoznany");
			   break;
		  }else echo($i."=".$adresy[$i]."<BR>");
     }

W pliku adresy.txt mam zapisane adresy e-mail, kazdy w innej linii. Z 
formularza podaje zmienna $adres. Wiec wedlug mnie program powinien 
wypisywac adresy dopoki nie rozpozna tego z formularza. zamiast tego 
wypisuje wszysto. co jest zle??? 

-- 
+-------sinu|-|e-------+--------------------+
| pawel@gitary.gery.pl | www.gitary.gery.pl |
+----------------------+--------------------+
Technical Details
Message-ID: <MPG.15f8d43d2bb5d3c3989691@news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!pingwin.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!news.icm.edu.pl!newsfeed.tpinternet.pl!news.tpi.pl!not-for-mail
From: sinuHe <internetguitar@interia.pl>
Newsgroups: pl.comp.lang.php
Subject: adresy
Date: Thu, 30 Aug 2001 23:55:56 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 19
Message-ID: <MPG.15f8d43d2bb5d3c3989691@news.tpi.pl>
NNTP-Posting-Host: pa35.przemysl.cvx.ppp.tpnet.pl
X-Trace: news2.tpi.pl 999208421 15794 213.77.220.35 (30 Aug 2001 21:53:41 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 30 Aug 2001 21:53:41 +0000 (UTC)
X-Newsreader: MicroPlanet Gravity v2.30
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit