Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> filesize
-hej-
post 24.02.2005, 19:15:44
Post #1





Goście







Mam cos takiego:

  1. <?php
  2.  
  3. ....
  4. {
  5. echo &#092;"<tr>\";
  6. echo &#092;"<td><a href=$default$file><img src=normal.gif border=0></a></td><td>$file</td><td>filesize($file)</td>\";
  7. echo &#092;"</tr>\";
  8.  }
  9. ....
  10.  
  11. ?>


I nie pokazuje mi rozmiaru, mozecie podac mi co robie zle?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
dr_bonzo
post 24.02.2005, 19:18:58
Post #2





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

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


Poprawnie lacz stringi i zmienne:
  1. <?php
  2. echo '<td><a href=\"' . $default . $file . '><img src=\"normal.gif\" border=\"0\" /></a></td><td>' . $file . '</td><td>' . filesize( $file ) . '</td>';
  3. ?>

+ wartosci atrybutow w cudzyslowach
+ XHTML
+ jesli nie porzebujesz "" to uzywaj do stringow ''.


--------------------
Nie lubię jednorożców.
Go to the top of the page
+Quote Post
-Guest-
post 24.02.2005, 19:20:17
Post #3





Goście







Sprobuj:

  1. <?php
  2.  
  3. ....
  4. {
  5. echo &#092;"<tr>\";
  6. echo &#092;"<td><a href=$default$file><img src=normal.gif border=0></a></td><td>$file</td><td>\".filesize($file).\"</td>\";
  7. echo &#092;"</tr>\";
  8. }
  9. ....
  10.  
  11. ?>


---
Prosze kod php dawac z naczniuku [php]
hwao
Go to the top of the page
+Quote Post
-Guest-
post 19.03.2005, 21:41:23
Post #4





Goście







hmm nadal mi nie pokazuje ;/
Go to the top of the page
+Quote Post
hwao
post 19.03.2005, 21:43:31
Post #5


Developer


Grupa: Moderatorzy
Postów: 2 844
Pomógł: 20
Dołączył: 25.11.2003
Skąd: Olkusz




$file ma zla sciezke z tego wynika dodaj
  1. <?php
  2. if( !file_exists( $file ) ) {
  3.  echo 'zla sciezka';
  4. }
  5. ?>
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 31.07.2025 - 08:42