i had to create a flash progress bar for the file upload section of an application today...
since php does not let the manipulation of raw post data, i had to use perl for this task...
the problem that i ran into was sharing the session info between these two platforms... on my server, php runs as nobody, while perl runs as the owner...
so i started to pondering an approach to pass php session info with minimal code.
well, found a module called PHP::Session on cpan, but it did not work... no miracles there... perl just gives a permission denied error...
bottom line, for those who pull their hair on this issue, here is the trick:
use LWP::Simple...
my $content=get("full_path_to_session_file");
php sets a cookie for the session id (if you enable it of course), just get it using cgi->cookie and append it to "sess_" prefix... that is the name of the session file.... (you can set the name of the session cookie and the session directory using the ini_set functions btw.)
and write your own perl parser function to extract the information you need...
hope this helps somebody.