how to pass a php variable to a perl program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nriv08
    New Member
    • Apr 2008
    • 2

    how to pass a php variable to a perl program

    Ok i've done lots of searching on google and i can't seem to find my answer.

    i have an html/php page that submits a string and stores it into a variable array via my php script.

    I want to pass this array into my perl program via @ARGV, but i can't.

    In perl i have also tried to set an empty array and set up a get option function but it won't pass through.

    some sample examples would also be helpful as well.
    Help please.
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    How do you invoke that Perl routine from PHP? Show some code (within code tags)

    Ronald

    Comment

    • nriv08
      New Member
      • Apr 2008
      • 2

      #3
      Originally posted by ronverdonk
      How do you invoke that Perl routine from PHP? Show some code (within code tags)

      Ronald
      from my php i used a "shell_exec(per lProgram.pl)"

      Comment

      Working...