Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Błąd przy wywołaniu system, Warning: system(): Unable to fork [...]
szyszek
post 22.06.2005, 01:16:13
Post #1





Grupa: Zarejestrowani
Postów: 20
Pomógł: 0
Dołączył: 3.09.2004

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


Wywoluje sobie funkcje java w nastepujacy sposob

$sys=system("java druk_pkg/drukuj $id");
if($sys!='')
{echo"
<script language='javascript'>
alert('$sys');
</script>";
}

Dopuki wszystko stalo na WIN2000 oraz iis5 bylo miodzio ale teraz z przymusu przenioslem sie na 2003 i lipa dostaje info

Warning: system(): Unable to fork [java druk_pkg/drukuj 28335] in C:\www\iframe_druk.php on line 141

Ma ktos pomysl co z tym zrobic questionmark.gif

Moje pomysly zawiodły
prubowałem następujących bajerów
- w iis uruchomialem witryne na uprawnieniach system lokalny
- w php safe_mode = Off
- katalog www może nawet gość wykasowac i zmieniac
- wszystkie powyrzsze naraz - o zgrozo
i nic w kolo to samo
prosze o pomoc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
FiDO
post 22.06.2005, 02:54:56
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 717
Pomógł: 0
Dołączył: 12.06.2002
Skąd: Wolsztyn..... Studia: Zielona Góra

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


Przenosze na php.


--------------------
Brak czasu :/
Go to the top of the page
+Quote Post
hwao
post 22.06.2005, 06:09:02
Post #3


Developer


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




na angielkim forum pisza zeby:

sprobowac pokrewnych funckji
system" title="Zobacz w manualu PHP" target="_manual() lub passthru" title="Zobacz w manualu PHP" target="_manual() albo exec" title="Zobacz w manualu PHP" target="_manual()

Cytat
Taken from http://php.net/exec (RTFM winksmiley.jpg
aaevil.gif

Cytat
Cytat

Shaun 26-Jan-2005 10:53

Trying to use 'exec' to run a helper executable on Win2K3 (and I'm told this also happens on Win2K) from a php script running on IIS, failed to invoke the executable.

Running the same php script on Win2K using Apache to serve the page calling the same helper executable worked.

Solution: On Win2K3 (and probably Win2K), give the IIS IUSR_xxxxx guest user Read & Execute permissions to Cmd.exe found in the System32 folder under Windows root directory.

This one had me confused longer than it should have! Hope this saves others from the same fate!



You could of course just switch to Apache, but I guess if you're using IIS you've no choice.


źródło : http://www.zend.com/phorum/read.php?num=6&...547&thread=2542

tutaj tez mozesz poczytac: http://www.experts-exchange.com/Web/Web_La...Q_20445300.html
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: 14.08.2025 - 05:38