Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]shell_exec
-janek12-
post 5.02.2012, 12:43:05
Post #1





Goście







Przy wywolaniu tego co ponizej nie wyrzuca zadnego komunikatu na ekran
czemu to nie wchodzi ani do if ani do else ?

  1. <?php
  2. $dir = shell_exec('dir B:');
  3. if(is_null($dir))
  4. { // B: does not exist
  5. // do whatever you want with the stderr output here
  6. echo "blad";
  7. }
  8. else
  9. { // B: exists and $dir holds the directory listing
  10. // do whatever you want with it here
  11. echo "ok";
  12. }
  13.  
  14. ?>

Go to the top of the page
+Quote Post

Posty w temacie
- janek12   [PHP]shell_exec   5.02.2012, 12:43:05
- - wNogachSpisz   Sprawdź czy przechodzi za linię 3.   5.02.2012, 12:50:45


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: 12.06.2025 - 11:39