CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced: Help getting directions.: Edit Log



cuboidgraphix
User

Jan 27, 2009, 1:10 PM


Views: 3292
Help getting directions.

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:

Code
<?php 
$foo='bar';
exec('./essai.pl $foo');

?>


and a perl script with this:


Code
#!/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)


Edit Log:
Post edited by cuboidgraphix (User) on Jan 27, 2009, 1:13 PM


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives