Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Passing php variables to a perl script

by toniax (Scribe)
on Aug 05, 2012 at 08:29 UTC ( [id://985504]=perlquestion: print w/replies, xml ) Need Help??

toniax has asked for the wisdom of the Perl Monks concerning the following question:

How can PHP session variables be passed to a Perl script?
-X-

Replies are listed 'Best First'.
Re: Passing php variables to a perl script
by Anonymous Monk on Aug 05, 2012 at 08:43 UTC
    The regular IPC mechanism is @ARGV, STDIN/STDOUT, so whatever "php session variables" and "perl script" means, you might use @ARGV/STDIN/STDOUT to transmit one to the other
Re: Passing php variables to a perl script
by Your Mother (Archbishop) on Aug 11, 2012 at 16:57 UTC

    Give this a look: PHP::Session. And you know you could have tried searching for “session” and ”php” on metacpan.org. :P

Re: Passing php variables to a perl script
by thomas895 (Deacon) on Aug 11, 2012 at 08:47 UTC

    I have heard of an Apache-specific feature called "notes"/"pnotes". Supposedly you can pass not only session variables, but any variable you'd like.
    Of course, you must use mod_perl(2.0, I think it was) and mod_php, and you can't change servers later, or it won't work anymore.

    Otherwise, use the command line, a database, temporary files, or whatever works out best for you.

    ~Thomas~
    confess( "I offer no guarantees on my code." );

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://985504]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-03-29 00:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found