I am the Perl developer for our company, I handle all the ecommerce and member systems. We have another guy that is a PHP guru, and does everything in PHP. We normally do stuff one time per day, I do all the transactions and qualfications for commissions, he takes the data I fill in then does his stuff with it.

Now we are working on a new program, where we can do this in real time. What I need it so pass him 3 variables and he will take those variables and give me a response

Here is the example I have tried but had fail:
my $_result = `php file.php memberid=$_memberid position=left referrer +=$_referrerid`;
I have the test php script read this way:
<?php my $_memberid = $_GET['memberid'] || $_POST['memberid'] || $memberid; my $_position = $_GET['position'] || $_POST['position'] || $position; my $_referrerid = $_GET['referrer'] || $_POST['referrer'] || $referrer +; echo "I have recieved the MemberID As: $_memberid and the Position as +$_position and finally the referring member id is: $_referrerid "; ?>

No matter what I try my cgi does not report that the way it should be, it has all the text, but none of the variables are read into php and then 'echoed' back.

Do any of you know of a way to do this?

He is just going to print only the id that he creates for the new 'affiliate' member. So I can place it in the members table.

I'd appreciate any assistance you can offer from any experience you have in this crazy area.

Richard

In reply to executing a PHP script from my perl program. by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.