sending arguments to a perl script using php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sh33p1985
Forum Commoner
Posts: 78
Joined: Thu Mar 11, 2004 9:22 am

sending arguments to a perl script using php

Post by sh33p1985 »

basically, it is to test the functionality on the perl script (in this case, a simple calculator with 4 operators + - * / and 2 textfield inputs, first integer and second integer). the script is called from a webpage with 2 textfields (as mentioned above) and a drop down menu to select the operator with a button to calculate and output the result.

does anyone have any idea on how to acheive this because with my limited php knowledge i really havent got a clue!!!
thanks
deyna
User avatar
xisle
Forum Contributor
Posts: 249
Joined: Wed Jun 25, 2003 1:53 pm

Post by xisle »

post your form to the script in the cgi-bin or call
it with system()
try looping through <STDIN> within your .pl
Post Reply