Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> filesize
-hej-
post
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
hwao
post
Post #2


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

Posty w temacie
- hej   filesize   24.02.2005, 19:15:44
- - dr_bonzo   Poprawnie lacz stringi i zmienne: [PHP] pobierz, p...   24.02.2005, 19:18:58
- - Guest   Sprobuj: [PHP] pobierz, plaintext <?php ....   24.02.2005, 19:20:17
- - Guest   hmm nadal mi nie pokazuje ;/   19.03.2005, 21:41:23
- - hwao   $file ma zla sciezke z tego wynika dodaj [PHP...   19.03.2005, 21:43:31


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: 14.10.2025 - 20:47