View Single Post
  #2 (permalink)  
Old July 21st, 2004, 07:12 AM
richard.york's Avatar
richard.york richard.york is offline
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Hmmmm... interesting challenge.

I dunno much about Perl.

At first glance one possibility is to store the necessary variables in a PHP session variable, then open and parse the PHP session data file with Perl... but that leaves the question of how to pass the session id to Perl. I would imagine that using request variables like GET, POST or COOKIE, that the PHP session id would be available that way, whereas you could open the sesison data file from Perl.

Then that leaves the question of how to execute the PERL script.

Well, one approach would be to use a simple redirect using the location header.. being sure to include that session id... then whaalah.. you have access to the PHP session data from within Perl.

It sounds like a feasible solution to me.

Does that make sense??

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::
Reply With Quote