DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Passing Information Between PHP And Perl

  • submit to reddit
        // description of your code here


apache_note('name', 'Fredrik Ekengren');

// Call perl script

$result = apache_note("resultdata");

#some stuff...

# Get Apache request object
my $r = Apache->request()->main();

# Get passed data
my $name = $r->notes('name');

# some processing

# Pass result back to PHP
$r->notes('resultdata', $result);