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

If I am calling a perl based web page from a php one on the same server, is there any simple way that I can access the variables on the php page without passing them to the perl page via the URL?

Replies are listed 'Best First'.
Re: php to perl
by broquaint (Abbot) on Nov 01, 2002 at 12:36 UTC
    You could store your variables in a PHP session file, pass around the session ID and the access the PHP session with the rather aptly named PHP::Session. Failing that you could communicate via sockets (assuming you've built PHP with socket support) or even shared memory (which also has to be built with PHP).

    For more info on sockets go here for PHP and here for perl, and for shared memory here for PHP and here for perl.
    HTH

    _________
    broquaint

Re: php to perl
by valdez (Monsignor) on Nov 01, 2002 at 12:28 UTC

    You can store variables in a php session and access them via PHP-Session in your Perl script.

    Ciao, Valerio