July 27th, 1999, 09:59 AM
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 ) but I can't see output of this on the browser.
I've tried with system() and exec() but still nothing.
Petite Chez Scheme Version 6.0a
Copyright <c> 1998 Cadence Research Systems>
$code="(define ... an so on)";
as output comes only:
Maybe anyone of you knows what should I do?
PERL - advice wouldn't be bad too.
August 9th, 1999, 04:11 PM
As far as I know, passthru() only accepts filepaths and URLs and all it does is suck the input in one end and spit it out the other...
Your example is a little vague- perhaps you could post something a little more substantial and I could tell you what to use in place of passthru... if you're trying to execute PHP code from a string, try eval().
Making good ideas grow