You are not logged in.
Dear visitor, welcome to Aqua Computer Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<?php
function dateiendung($datei){
$array = explode(".",$datei);
return $array[count($array)-1];
}
$path = dir "kolobok/";
while($datei = $path->read()){
if(dateiendung($datei) == "gif"){
echo "<a href='$datei'>$datei</a>";
}
}
?>
|
|
|
PHP Source code |
1 |
echo "<a href='".$folder.$datei."'>".$datei."</a><br />";
|
This post has been edited 1 times, last edit by "Y0Gi" (Jan 22nd 2013, 3:39am)
http://www.jogibaeruniverse.de/dateiliste.php Wenn ich jetzt noch schaffe die Adressen automatisch als Bild anzeigen zu lassen mit dynamischen Abmessungen, dass ist es perfekt.
|
|
PHP Source code |
1 |
if (($entry != '.') and (substr($entry, -4) != '.gif')) {
|

|
|
PHP Source code |
1 |
echo "<a href='".$folder.$datei."'><img src='".$folder.$datei."'></a><br />";
|
@Coderschmidt: Klasse danke, dein Script interessiert mich jetzt aber auch, aber ich schätze ich scheitere wieder aufgrund meines geringen Coding Skills.
)).Ich muss doch nur diese Zeile hier ändern und dann das Script in das Verzeichnis kopieren in dem sich die zu indizierenden Dateien befinden oder?
![]()
PHP Source code
1if (($entry != '.') and (substr($entry, -4) != '.gif')) {
|
|
PHP Source code |
1 |
substr($entry, -4) == '.gif'
|
This post has been edited 2 times, last edit by "Y0Gi" (May 24th 2011, 10:18pm)
|
|
PHP Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<?php
function dateiendung($datei){
$array = explode(".",$datei);
return $array[count($array)-1];
}
$path = dir ("kolobok/");
while($datei = $path->read()){
if(dateiendung($datei) == "gif"){
echo "<a href='kolobok/".$datei."'><img src='kolobok/".$datei."'></a><br />";
}
}
?>
|
). Viel Spaß damit. This post has been edited 1 times, last edit by "Y0Gi" (Jan 22nd 2013, 3:39am)
Mir steht PHP 5.2.13 zur Verfügung, mein webspace wird von df.eu betrieben, also immer recht aktuell.
|
|
PHP Source code |
1 2 |
function get_grouped_entries($path) {
list($dirs, $files) = collect_directories_and_files($path)
|
(das mein ich ernst) 
[...]
Sowas wie in der von mir verlinkten Galerie, d.h. alles nebeneinander soweit in der Breite Platz ist, dann Umbruch? Brauchst du wirklich Tabellen, und wieso drei davon? Sind die Bilder irgendwie gruppiert?
Ich werde erstmal versuche php 5.3.3 zu bekommen, schätze es ist auch erst dann sinnvoll mich anhand deines Galerie Beispiels ein entsprechendes Script zusammen zu basteln. -