Passing information between PHP and Perl - Perl

Passing info

Snippet Code

Rate this page :
  [ 0 votes]

Sample for passing data between php and perl programs.

<?php apache_note('name', 'Fredrik Ekengren'); // Call perl script virtual("/perl/"); $result = apache_note("resultdata"); ?> #!/usr/bin/perl #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);


Ask Questions

Ask Question