
cuboidgraphix
User
Jan 27, 2009, 1:10 PM
Post #1 of 4
(1919 views)
|
|
Help getting directions.
|
Can't Post
|
|
Hi guys, First of all I want to thank everyone (Fish, Kevin and Shawn) ... for helping me out a lot these past few weeks. Without you guys and this great forum I wouldn't have acquired the wee bit of knowledge I have now. Well I'm moving on from just perl scripts and I wanted to know if anyone can direct me to some good tutorials. My basic Idea: I'm creating a statistical webtool using the frontend as PHP and AJAX. I'm using dynamic PHP forms that call PERL scripts and pass the variables. These PERL scripts query into a MySQL database using the passed variables and use the data along with some Perl Modules to do calculations. The result of these calculations are passed to another PHP page that incorporates JPGraph to graph out the analysis. The graph.. along with text data are then called and passed back to the Main PHP page. Hope I didn't lose you along the way. :) Well my questions or request is... Is there a way to pass variables from PHP to Perl and back to PHP? I've been reading and found this tut. PHP Code:
<?php $foo='bar'; exec('./essai.pl $foo'); ?> and a perl script with this:
#!/usr/bin/perl -s use vars ($foo); if ($foo eq bar){ print $foo; } How can I pass variables from perl to php ... especially if it's a perl script with a loop? Thanks for any help rendered.
(This post was edited by cuboidgraphix on Jan 27, 2009, 1:13 PM)
|