Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] wstawienie tablicy w skrypt
mefjiu
post
Post #1





Grupa: Zarejestrowani
Postów: 313
Pomógł: 5
Dołączył: 22.03.2005

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


Witam mam taki problem że chciałbym w ten skrypt wstawić tablicę:
  1. <?php
  2. if (is_dir($path.'/'.$node)
  3. and $node != '.'
  4. and $node != '..'
  5. and $node != '.svn'
  6. and $node != 'thumbnail'
  7. and $node != 'pwg_high'
  8. and $node != 'pwg_representative'
  9. )
  10. {
  11.  
  12. }
  13. ?>

wstawienie na sztywno wygląda tak:
  1. <?php
  2. if (is_dir($path.'/'.$node)
  3. and $node != '.'
  4. and $node != '..'
  5. and $node != 'sdsdn'
  6. and $node != 'esl'
  7. and $node != 'bcd'
  8. and $node != 'abcd'
  9. //foldery
  10. and $node != 'folder1'
  11. and $node != 'folder2'
  12. and $node != 'folder3'
  13. and $node != 'folder4'
  14. and $node != 'folder5'
  15. and $node != 'folder6'
  16. and $node != 'folder7'
  17. and $node != 'folder8'
  18. and $node != 'folder9'
  19. and $node != 'folder10'
  20. and $node != 'folder11'
  21. and $node != 'folder12'
  22. and $node != 'folder13'
  23. and $node != 'folder14'
  24. )
  25. {
  26.  
  27. }
  28. ?>


ja bym chciał aby tą Tabice wykorzystać
  1. <?php
  2. $conf['folder'] = array("folder1","folder2","folder3","folder4","folder5","folder6","folder7","folder8","folder9",folder"10","folder11","folder12","folder13","folder14");
  3. ?>

Jakoś to tak wykorzystać no kompletnie nie mam pojęcia jak to połączyć
  1. <?php
  2. if (is_dir($path.'/'.$node)
  3. and $node != '.'
  4. and $node != '..'
  5. and $node != 'sdsdn'
  6. and $node != 'esl'
  7. and $node != 'bcd'
  8. and $node != 'abcd'
  9. //foldery
  10. and $node != $conf['folder']
  11. )
  12. {
  13.  
  14. }
  15. ?>


Proszę o wszelką pomoc.
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 19.08.2025 - 04:07