It seems I didn't read the descrition of 'exec()' good enough when I read it the first time :( Now it works, thank you
From: "Krzysztof Kocjan" <[EMAIL PROTECTED]> To: "Stefan Rusterholz" <[EMAIL PROTECTED]> > See exec() and system functions in PHP > > Krzysztof > > Stefan Rusterholz wrote: > > > > Hi > > For some reasons I need to execute a Perl-CGI from within PHP. > > I tried it that way: > > $command = "C:\\Perl\\bin\\Perl.exe ".$basedir."myperl.pl"; > > $result = @passthru($command, $status); > > > > now my Problem: the perl prints its output immidiatly to the browser and $result is empty after the execution of the perl-script. > > I needed the output in $result and don't want that the perl script prints to the browser... > > The whole thing is running on a win2k Server machine. > > Does someone know what I'm doing wrong? > > > > By the way: which number in $status means what? > > > > regards > > Stefan Rusterholz, [EMAIL PROTECTED] > > ---------------------------------- > > interaktion gmbh > > Stefan Rusterholz > > Zürichbergstrasse 17 > > 8032 Zürich > > ---------------------------------- > > T. +41 1 253 19 55 > > F. +41 1 253 19 56 > > W3 www.interaktion.ch > > ---------------------------------- > > ------------------------------------------------------------ > 99% trafien. 1% rezerwy, zeby innym nie bylo przykro. > Nowe Centrum Wyszukiwania >> http://szukaj.interia.pl/ > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]