Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Błąd przy wywołaniu system
Forum PHP.pl > Forum > PHP
szyszek
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
FiDO
Przenosze na php.
hwao
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
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.