Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> galeria grafik..
Volume
post
Post #1





Grupa: Zarejestrowani
Postów: 283
Pomógł: 11
Dołączył: 11.10.2004
Skąd: 3c

Ostrzeżenie: (0%)
-----


mam taki skrypt wyswietlający grafikę z katalogów:

z.php
  1. <html>
  2. <head>
  3. <title>ppp</title>
  4. <body>
  5. <table border=\"0\"><tr>
  6. <?php
  7. $img_dir = &#092;"images\";
  8. $thumb_dir = &#092;"thumbnails\";
  9. $cols = 6;
  10. $width = 120;
  11. $counter = 1;
  12.  
  13. if(!($fe = opendir($thumb_dir))) exit;
  14. while (($file = readdir($fd)) !== false){
  15.   if($file != &#092;".\" && $file != \"..\"){
  16.          $name = substr($file, 0, strlen($file) - 5);
  17.          $name = $name.&#092;".jpg\";
  18.          echo(&#092;"rn<td align=\"center\" valign=\"middle\">rn\");
  19.          echo(&#092;"<a href=\"$img_dir$name\">\");
  20.          echo(&#092;"</a>\");
  21.          echo(&#092;"rn</td>rn\");
  22.          if(($counter >= $cols) && (($counter % $cols) == 0)){
  23.                 echo(&#092;"rn</tr><tr>rn\");
  24.          }
  25.          $counter++;
  26.   }
  27. }
  28. echo(&#092;"rn</tr>rn\");
  29. closedir($fd);
  30. ?>
  31. </table>
  32. </body>
  33. </html>


i na serwerze wyświetal mi takie coś:

Warning: opendir(thumbnails\): failed to open dir: No such file or directory in /home/krylamex/public_html/skrypt22/z.php on line 13
no i nie wiem co mam zrobić... Skrypt jest z ksiażki 101 praktycznych skryptów.

Ten post edytował Volume 22.11.2004, 13:03:43
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.08.2025 - 10:35