You are not logged in.

wcf.regNote.message

badmoon2049

Intermediate

  • "badmoon2049" started this thread

Posts: 188

Location: Leipzig

Occupation: Azubi

  • Send private message

1

Wednesday, February 22nd 2006, 3:41pm

Bilder aus verzeichniss auslesen

Ok ich hab da mal wieder so ein kleines Problem ich habe ein script geschrieben was aus einem verzeichniss Bilder ausließt und diese anzeigt das problem ist das leider nicht alle angezeigt werden. Wenn ich das script auf meinem localhost Webserver teste werden alle angezeigt.

PHP Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
$pfad="images/bilder/";
$verz=opendir ($pfad);
$count 1;

while ($picname=readdir($verz))
{
   if (filetype($pfad $picname)!="dir")
    {
        
        if ($count == 1)  {
                $tbl_start '<tr>';
                
            } else {
                
                $tbl_start '';
            
            }
            $count++;
            
            
            if ($count == 4)  { 
            $tbl_end   '</tr>'; 
            $count 1;
            
            } else {
            $tbl_end   ''; 
            
            }
        
        $i++;
       // echo "$file<br>";
   $picname_epl explode(".",$picname);
   $picname_epl $picname_epl[0];
   
   // Template wird ausgegeben !! ((FELD 3)
   eval ("\$picture_list.= \"".gettemplate("aboutme_pix_list")."\";");
    }


}
closedir($verz);

// Template wird ausgegeben !! ( FELD 2)
eval ("\$content.= \"".gettemplate("aboutme_pix")."\";");



Source code

1
2
3
4
5
6
aboutme_pix_ist.tpl
FELD 2

$tbl_start
<td align="center"><a href="images/bilder/$picname"><img src="images/bilder/thumbs_hover/$picname" name="$picname_epl" border="0"></a></td>
$tbl_end



Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
aboutme_pix.tpl
FELD 2

<table width="95%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="46%"  border="0" cellspacing="0" cellpadding="0">
              <tr bgcolor="#0D4782">
                <td width="31%"><div align="center"><a href="index.php?site=aboutme"><img src="images/buttons/about_Profil.gif" width="100" height="21" border="0"></a></div></td>
                <td width="34%" bgcolor="#0D4782"><div align="center"><img src="images/buttons/about_bilder_aktiv.gif" width="100" height="21" border="0"></div></td>
                <td width="35%" bgcolor="#0D4782"><div align="center"><strong><a href="index.php?site=aboutme_100Fragen"><img src="images/buttons/about_100Fragen.gif" width="100" height="21" border="0"></a></strong></div></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td bgcolor="#44729B">&nbsp;</td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
	<table align="center" width="100%">
	
	$picture_list
	
	</table></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>


so.. das phänomen kann man sich hier anschauen ach ja das auf den bildern bin nicht ich sieht nur so aus :D
http://www.x303.de/x303/index.php?site=aboutme_pix


Danke schon mal für euere Hilfe

Ephraim

Professional

Posts: 826

Location: coder-board.info

Occupation: Info-Student

  • Send private message

2

Thursday, February 23rd 2006, 8:50am

Ich würde dir mal vorschlagen alles gross oder alles klein zuschreiben.
(die Dateinamen). Des macht glaub ich z.B. beim Apache en Problem wenn da was net passt.
Und haben die Bilder alle die passenden Rechte?
Und ich würd mal sagen, du hast die MiniBilder nicht gleich benannt (groß kleinschreibung) denn wenn man copyimageaddress macht bekommt man www.x303.de/404.html und des dürfe ja net sein oder ?! :)

Ciao Ephraim

badmoon2049

Intermediate

  • "badmoon2049" started this thread

Posts: 188

Location: Leipzig

Occupation: Azubi

  • Send private message

3

Thursday, February 23rd 2006, 1:31pm

juhuuu ich geh kaputt das das sowas von Banales und einfaches war :) Jetzt versteh ich auch warum das hier auf meinem Rechner lief und auf dem Webserver Online nicht... Windows und Linux.. ach nee. Ich dachte schon es liegt an der Auslastung und der bricht dann nur ab.. nja

Danke schön :prost:

wcf.user.socialbookmarks.titel