PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
[PHP] Daten aus Odrnern und Unterordnern auslesen
Beitrag
<blockquote data-quote="mystery26284" data-source="post: 2299039" data-attributes="member: 594010"><p><strong>AW: [PHP] Daten aus Odrnern und Unterordnern auslesen[/b]</strong></p><p><strong></strong></p><p><strong>So hier mal der ganze Code des Dokuments</strong></p><p><strong></strong></p><p><strong>[HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></strong></p><p><strong><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" ></strong></p><p><strong></strong></p><p><strong> <head></strong></p><p><strong></strong></p><p><strong> <title>RK Portfolio</title></strong></p><p><strong> <link rel="stylesheet" href="style.css" type="text/css"/></strong></p><p><strong> <link rel="stylesheet" href="css/slimbox.css" type="text/css" media="screen,projection" /></strong></p><p><strong> <link href="galerie_style.css" rel="stylesheet" type="text/css" /></strong></p><p><strong> <script type="text/javascript" src="js/mootools.js"></script></strong></p><p><strong> <script type="text/javascript" src="js/slimbox.js"></script></strong></p><p><strong> </strong></p><p><strong> </head></strong></p><p><strong> <body></strong></p><p><strong> <div id="wrapper_center"></div></strong></p><p><strong> <div id="wrapper"></strong></p><p><strong></strong></p><p><strong> <div id="header"></div><!-- header --></strong></p><p><strong> </strong></p><p><strong> <div id="main_menu"></strong></p><p><strong> <nav></strong></p><p><strong> <ul></strong></p><p><strong> <li><a href="de_home.php" title="">Home</a></li></strong></p><p><strong> <li><a href="#" title="">2D</a></li></strong></p><p><strong> <li><a href="de_3d.php" title="">3D</a></li></strong></p><p><strong> <li><a href="#" title="">Web Design</a></li></strong></p><p><strong> <li><a href="#" title="">Layout</a></li></strong></p><p><strong> </ul></strong></p><p><strong> </nav></strong></p><p><strong> <div id="lang_menu"><nav></strong></p><p><strong> <ul></strong></p><p><strong> <li><a href="galerie.php" title="">Deutsch</a></li></strong></p><p><strong> <li><a href="#" title="">Englisch</a></li></strong></p><p><strong> <li><a href="#" title="">Kontakt</a></li></strong></p><p><strong> </ul></strong></p><p><strong> </nav></strong></p><p><strong> </div></strong></p><p><strong> </div></strong></p><p><strong> </strong></p><p><strong> </strong></p><p><strong> </strong></p><p><strong> <div id="main"><p>Meine 3d Arbeiten </p>[/HTML]</strong></p><p><strong>[PHP]<?php</strong></p><p><strong> //Galeriepfad</strong></p><p><strong> $pfad = ("galerien/3d");</strong></p><p><strong></strong></p><p><strong> echo '<div id="galerie">';</strong></p><p><strong> //Projektordner Auslesen </strong></p><p><strong> foreach (glob("$pfad/*") as $projekte ) </strong></p><p><strong> {</strong></p><p><strong> //Gibt den Ordnernamen des Projektes wieder</strong></p><p><strong> echo basename("$projekte"), "<br />", "<br />";</strong></p><p><strong> //Sucht zu jedem Projekt passend die Bilder</strong></p><p><strong> foreach (glob("$projekte/images/*.jpg") as $bilder)</strong></p><p><strong> {</strong></p><p><strong> //Gibt die Vorhandenen Bilder aus </strong></p><p><strong> echo '<div id="galerie_bilder">';</strong></p><p><strong> echo ($break % 3 == 0) ? "<br />\n" : "";</strong></p><p><strong> $break++;</strong></p><p><strong> echo $bilder;</strong></p><p><strong> echo '</div>';</strong></p><p><strong> } </strong></p><p><strong> //Sucht zu jedem Projekt passend die Projektbeschreibung </strong></p><p><strong> foreach (file("$projekte/beschreibung/discr.txt") as $beschreibung)</strong></p><p><strong> {</strong></p><p><strong> //Gibt zu jedem Projekt passend die Projektbeschreibung aus</strong></p><p><strong> echo '<div id="galerie_beschreibung">';</strong></p><p><strong> echo $beschreibung;</strong></p><p><strong> echo '</div>';</strong></p><p><strong> }</strong></p><p><strong> }</strong></p><p><strong></strong></p><p><strong> echo '</div>';</strong></p><p><strong>?>[/PHP] </strong></p><p><strong> [HTML] </div><!-- main --></strong></p><p><strong> </strong></p><p><strong> <div id="footer"><h6>Copyright by Ronny Kambach Alle Rechte Vorbehalten</h6></div><!-- footer --></strong></p><p><strong> </strong></p><p><strong> </div><!-- wrapper --> </strong></p><p><strong> </strong></p><p><strong> </body></strong></p><p><strong></html>[/HTML]</strong></p><p><strong></strong></p><p><strong>Und hier ein zu meiner Seite zwecks der ausgabe vom Script</strong></p></blockquote><p></p>
[QUOTE="mystery26284, post: 2299039, member: 594010"] [b]AW: [PHP] Daten aus Odrnern und Unterordnern auslesen[/b] So hier mal der ganze Code des Dokuments [HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de" > <head> <title>RK Portfolio</title> <link rel="stylesheet" href="style.css" type="text/css"/> <link rel="stylesheet" href="css/slimbox.css" type="text/css" media="screen,projection" /> <link href="galerie_style.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/mootools.js"></script> <script type="text/javascript" src="js/slimbox.js"></script> </head> <body> <div id="wrapper_center"></div> <div id="wrapper"> <div id="header"></div><!-- header --> <div id="main_menu"> <nav> <ul> <li><a href="de_home.php" title="">Home</a></li> <li><a href="#" title="">2D</a></li> <li><a href="de_3d.php" title="">3D</a></li> <li><a href="#" title="">Web Design</a></li> <li><a href="#" title="">Layout</a></li> </ul> </nav> <div id="lang_menu"><nav> <ul> <li><a href="galerie.php" title="">Deutsch</a></li> <li><a href="#" title="">Englisch</a></li> <li><a href="#" title="">Kontakt</a></li> </ul> </nav> </div> </div> <div id="main"><p>Meine 3d Arbeiten </p>[/HTML] [PHP]<?php //Galeriepfad $pfad = ("galerien/3d"); echo '<div id="galerie">'; //Projektordner Auslesen foreach (glob("$pfad/*") as $projekte ) { //Gibt den Ordnernamen des Projektes wieder echo basename("$projekte"), "<br />", "<br />"; //Sucht zu jedem Projekt passend die Bilder foreach (glob("$projekte/images/*.jpg") as $bilder) { //Gibt die Vorhandenen Bilder aus echo '<div id="galerie_bilder">'; echo ($break % 3 == 0) ? "<br />\n" : ""; $break++; echo $bilder; echo '</div>'; } //Sucht zu jedem Projekt passend die Projektbeschreibung foreach (file("$projekte/beschreibung/discr.txt") as $beschreibung) { //Gibt zu jedem Projekt passend die Projektbeschreibung aus echo '<div id="galerie_beschreibung">'; echo $beschreibung; echo '</div>'; } } echo '</div>'; ?>[/PHP] [HTML] </div><!-- main --> <div id="footer"><h6>Copyright by Ronny Kambach Alle Rechte Vorbehalten</h6></div><!-- footer --> </div><!-- wrapper --> </body> </html>[/HTML] Und hier ein zu meiner Seite zwecks der ausgabe vom Script[/b] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 7, ▼ = 3, ◇ = 2 und die Summe von ▲ und ▼ durch ◇ geteilt wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
PHP, Javascript, jQuery, Ajax, nodeJS, MySQL...
[PHP] Daten aus Odrnern und Unterordnern auslesen
Oben