Mailinglisten-Archive |
This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C14AD4.58931180 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hallo Liste, kennt jemand eine M=F6glichkeit die Anzahl aller in einem = Ordner=20 befindlicher Dateien zu ermitteln? Die Seite l=E4uft auf Puretec. mfG Mario <?php $dir =3D dir($verzeichnis); while($file =3D $dir -> read()) { if(!is_dir($verzeichnis.$file) && $file !=3D "." && $file !=3D "..") $count++; } echo 'Anzahl: '.$count; ?> Mit freundlichen Gr=FC=DFen Daniel Freudenberger ------=_NextPart_000_0006_01C14AD4.58931180 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2> <BLOCKQUOTE dir=3Dltr=20 style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV><FONT face=3DArial size=3D2>Hallo Liste, kennt jemand eine = M=F6glichkeit die=20 Anzahl aller in einem Ordner </FONT></DIV> <DIV><FONT face=3DArial size=3D2>befindlicher Dateien zu = ermitteln?</FONT></DIV> <DIV><FONT face=3DArial size=3D2>Die Seite l=E4uft auf = Puretec.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>mfG = Mario</FONT></FONT></DIV></BLOCKQUOTE></DIV> <DIV><?php</DIV> <DIV>$dir =3D dir($verzeichnis);</DIV> <DIV>while($file =3D $dir -> read())<BR>{</DIV> <DIV><FONT face=3DArial size=3D2> = if(!is_dir($verzeichnis.$file)=20 && $file !=3D "." && $file !=3D "..")</FONT></DIV> <DIV><FONT face=3DArial size=3D2> =20 $count++;</FONT></DIV> <DIV><FONT face=3DArial size=3D2>}</FONT></DIV> <DIV><FONT face=3DArial size=3D2>echo 'Anzahl: '.$count;</FONT></DIV> <DIV><FONT face=3DArial size=3D2>?></FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Mit freundlichen Gr=FC=DFen<BR>Daniel=20 Freudenberger</FONT></DIV></BODY></HTML> ------=_NextPart_000_0006_01C14AD4.58931180--
php::bar PHP Wiki - Listenarchive