![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 117 Pomógł: 0 Dołączył: 24.05.2004 Skąd: krakow Ostrzeżenie: (10%) ![]() ![]() |
mam taki kod:
ale niestety jesli polecenie systemowe nie wykona sie poprawnie, na ekran nie zostaje wypisany error. Jak to zmodyfikowac aby zobaczyc komunikat o bledzie? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 23 Pomógł: 0 Dołączył: 31.07.2003 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Sprawdz manual php online w komentarzach masz cos takiego np:
The documention does not mention that passthru() will only display standard output and not standard error. If you are running a script you can pipe the STDERR to STDOUT by doing exec 2>&1 Eg. the script below will actually print something with the passthru() function... #!/bin/sh exec 2>&1 ulimit -t 60 cat nosuchfile.txt |
|
|
![]() ![]() |
![]() |
Aktualny czas: 3.10.2025 - 11:15 |