PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 27th, 1999, 09:59 AM
Magda
Guest
Dev Shed Newbie (0 - 499 posts)
 
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

Reply With Quote
  #2  
Old August 9th, 1999, 04:11 PM
Jake @ Icongarden
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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().

Jake

------------------
icongarden.com
Making good ideas grow


Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PassThru() and the schemeinterpreter


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway