
July 27th, 1999, 09:59 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
Hi there,
I have a little problem. I'm trying to call a schemeinterpreter (chez scheme 'petite') with PassThru-function in PHP3.
It works, I can even see the Output on the browser but then I've tried to execute some commands f.e.: (load "file.ss") it seems to work (the return variable of the command is [0]) but I can't see output of this on the browser.
I've tried with system() and exec() but still nothing.
some code:
$cmd="/var/local/bin/petite";
passthru($cmd, $ret_var);
echo $ret_var;
Output:
Petite Chez Scheme Version 6.0a
Copyright <c> 1998 Cadence Research Systems>
0
and then:
$code="(define ... an so on)";
passthru($code, ret_var);
echo $ret_var;
as output comes only:
0
Maybe anyone of you knows what should I do?
PERL - advice wouldn't be bad too.
Magda
|