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." );